kwave  18.07.70
Kwave::Interpolation::InterpolationMap Class Reference

#include <Interpolation.h>

Inheritance diagram for Kwave::Interpolation::InterpolationMap:
Inheritance graph
Collaboration diagram for Kwave::Interpolation::InterpolationMap:
Collaboration graph

Public Member Functions

 InterpolationMap ()
 
virtual void fill () Q_DECL_OVERRIDE
 
- Public Member Functions inherited from Kwave::TypesMap< Kwave::interpolation_t, int >
 TypesMap ()
 
virtual ~TypesMap ()
 
virtual void append (Kwave::interpolation_t index, int data, const QString &name, const QString &description)
 
unsigned int count () const
 
Kwave::interpolation_t findFromData (const int &data) const
 
Kwave::interpolation_t findFromName (const QString &name) const
 
int data (Kwave::interpolation_t type) const
 
QString name (Kwave::interpolation_t type) const
 
QString description (Kwave::interpolation_t type, bool localized) const
 
QStringList allNames () const
 
QList< Kwave::interpolation_tkeys () const
 

Detailed Description

Little private class for initialized map. Used to translate interpolation_t into verbose name and vice-versa.

Definition at line 123 of file Interpolation.h.

Constructor & Destructor Documentation

◆ InterpolationMap()

Kwave::Interpolation::InterpolationMap::InterpolationMap ( )
inlineexplicit

Constructor

Definition at line 129 of file Interpolation.h.

130  :TypesMap<Kwave::interpolation_t, int >()
131  {
132  fill();
133  }
virtual void fill() Q_DECL_OVERRIDE

Member Function Documentation

◆ fill()

void Kwave::Interpolation::InterpolationMap::fill ( )
virtual

filling function for the map.

Implements Kwave::TypesMap< Kwave::interpolation_t, int >.

Definition at line 32 of file Interpolation.cpp.

References ADD, Kwave::INTPOL_LINEAR, Kwave::INTPOL_NPOLYNOMIAL, Kwave::INTPOL_POLYNOMIAL3, Kwave::INTPOL_POLYNOMIAL5, Kwave::INTPOL_POLYNOMIAL7, Kwave::INTPOL_SAH, Kwave::INTPOL_SPLINE, and Kwave::Interpolation::m_interpolation_map.

33 {
34  ADD(INTPOL_LINEAR, 0, "linear", I18N_NOOP("Linear"));
35  ADD(INTPOL_SPLINE, 1, "spline", I18N_NOOP("Spline"));
36  ADD(INTPOL_NPOLYNOMIAL, 2, "n-polynom", I18N_NOOP("Polynom, nth Degree"));
37  ADD(INTPOL_POLYNOMIAL3, 3, "3-polynom", I18N_NOOP("Polynom, 3rd Degree"));
38  ADD(INTPOL_POLYNOMIAL5, 4, "5-polynom", I18N_NOOP("Polynom, 5th Degree"));
39  ADD(INTPOL_POLYNOMIAL7, 5, "7-polynom", I18N_NOOP("Polynom, 7th Degree"));
40  ADD(INTPOL_SAH, 6, "sample_hold",I18N_NOOP("Sample and Hold"));
41 }
#define ADD(i, n, s, d)

The documentation for this class was generated from the following files: