kwave
18.07.70
|
#include <Functions.h>
Classes | |
class | FunctionTypesMap |
Public Types | |
typedef double() | periodic_function_t(double) |
Public Member Functions | |
Functions () | |
virtual | ~Functions () |
unsigned int | count () const |
QString | name (unsigned int index) |
periodic_function_t & | function (unsigned int index) const |
Private Attributes | |
FunctionTypesMap | m_functions_map |
Holds a list of simple periodic arithmetic functions. All functions are normed to work within the interval [0...2 Pi]
Definition at line 34 of file Functions.h.
typedef double() Kwave::Functions::periodic_function_t(double) |
Definition at line 38 of file Functions.h.
Kwave::Functions::Functions | ( | ) |
|
virtual |
unsigned int Kwave::Functions::count | ( | ) | const |
Returns the number of functions
Definition at line 135 of file Functions.cpp.
References Kwave::TypesMap< IDX, DATA >::count(), and m_functions_map.
Kwave::Functions::periodic_function_t & Kwave::Functions::function | ( | unsigned int | index | ) | const |
Returns a reference to a function. If the index is out of range, the returned function will be "zero()".
index | [0...count-1] |
Definition at line 122 of file Functions.cpp.
References Kwave::TypesMap< IDX, DATA >::count(), Kwave::TypesMap< IDX, DATA >::data(), m_functions_map, and zero().
QString Kwave::Functions::name | ( | unsigned int | index | ) |
Returns the name of a function. If the index is out of range, the returned name will be that of the "zero()" function.
index | [0...count-1] |
Definition at line 114 of file Functions.cpp.
References _, Kwave::TypesMap< IDX, DATA >::count(), m_functions_map, and Kwave::TypesMap< IDX, DATA >::name().
|
private |
map of periodic functions
Definition at line 81 of file Functions.h.
Referenced by count(), function(), and name().