itom
|
Additional base class for all list or array meta information. More...
#include <paramMeta.h>
Public Member Functions | |
ListMeta () | |
< default constructor with an arbitrary list size | |
ListMeta (size_t numMin, size_t numMax, size_t numStepSize=1) | |
destructor | |
virtual | ~ListMeta () |
< destructor | |
virtual bool | operator== (const ListMeta &other) const |
returns minimum number of values | |
size_t | getNumMin () const |
returns maximum number of values | |
size_t | getNumMax () const |
returns step size of number of values | |
size_t | getNumStepSize () const |
void | setNumMin (size_t val) |
sets the minimum number of values | |
void | setNumMax (size_t val) |
sets the maximum number of values | |
void | setNumStepSize (size_t val) |
sets the step size of the number of values | |
Private Attributes | |
size_t | m_numMin |
size_t | m_numMax |
size_t | m_numStep |
Additional base class for all list or array meta information.
Meta objects that derive from this class, too get further meta information about the minimum and maximum number of elements in a list, including an optional step size.
void ito::ListMeta::setNumMax | ( | size_t | val | ) |
sets the maximum number of values
val | is the new maximum value, if this is smaller than the current minimum value, the minimum value is changed to val, too |
void ito::ListMeta::setNumMin | ( | size_t | val | ) |
sets the minimum number of values
val | is the new minimum value, if this is bigger than the current maximum value, the maximum value is changed to val, too |
void ito::ListMeta::setNumStepSize | ( | size_t | val | ) |
sets the step size of the number of values
val | is the new step size, hence only discrete values [minVal, minVal+stepSize, minVal+2*stepSize...,maxVal] are allowed |