itom 1.3.0
ito::DoubleMeta Class Reference

Meta-information for Param of type Double or DoubleArray. More...

#include <param.h>

Inheritance diagram for ito::DoubleMeta:
ito::ParamMeta

List of all members.

Public Member Functions

 DoubleMeta (double minVal, double maxVal, double stepSize=0.0)
 constructor with minimum and maximum value
double getMin () const
 returns minimum value
double getMax () const
 returns maximum value
double getStepSize () const
 returns step size
void setMin (double val)
 sets the minimum value
void setMax (double val)
 sets the maximum value
void setStepSize (double val)
 sets the step size

Static Public Member Functions

static DoubleMetaall ()
 returns a new instance of DoubleMeta, where the min and max are set to the full range available for double.

Private Attributes

double m_minVal
double m_maxVal
double m_stepSize

Detailed Description

Meta-information for Param of type Double or DoubleArray.

See also:
ito::Param

Member Function Documentation

void ito::DoubleMeta::setMax ( double  val) [inline]

sets the maximum value

Parameters:
valis the new maximum value, if this is smaller than the current minimum value, the minimum value is changed to val, too
void ito::DoubleMeta::setMin ( double  val) [inline]

sets the minimum value

Parameters:
valis the new minimum value, if this is bigger than the current maximum value, the maximum value is changed to val, too
void ito::DoubleMeta::setStepSize ( double  val) [inline]

sets the step size

Parameters:
valis the new step size, hence only discrete values [minVal, minVal+stepSize, minVal+2*stepSize...,maxVal] are allowed

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends