Specifications for numerical intervals. More...
Public Member Functions | |
| NumInpIntervalSpec (bool withstep=false) | |
| NumInpIntervalSpec (const Interval< T > &interval) | |
| NumInpIntervalSpec (const NumInpIntervalSpec< T > &o) | |
| ~NumInpIntervalSpec () | |
| virtual NumInpIntervalSpec< T > * | clone () const |
| virtual int | nElems () const |
| bool | hasStep () const |
| virtual bool | isUndef (int idx=0) const |
| virtual void | setValue (const Interval< T > &intval) |
| virtual void | setDefaultValue (const Interval< T > &defaultintval) |
| virtual bool | setText (const char *s, int idx=0) |
| T | value (int idx=0) const |
| virtual int | getIntValue (int idx=0) const |
| virtual double | getdValue (int idx=0) const |
| virtual float | getfValue (int idx=0) const |
| T | defaultValue (int idx=0) const |
| virtual int | getDefaultIntValue (int idx=0) const |
| virtual double | getDefaultValue (int idx=0) const |
| virtual float | getDefaultfValue (int idx=0) const |
| virtual const char * | text (int idx=0) const |
| virtual bool | hasLimits () const |
| virtual bool | isInsideLimits (int idx=0) const |
| const Interval< T > * | limits (int idx=0) const |
| gets limits for interval components. | |
| NumInpIntervalSpec & | setLimits (const Interval< T > &r, int idx=-1) |
| sets limits for interval components. | |
Protected Member Functions | |
| T | value_ (int idx=0) const |
| T | defaultvalue_ (int idx=0) const |
| T * | pt_value_ (int idx=0, bool defval=false) const |
| StepInterval< T > * | stpi (bool defval=false) const |
Protected Attributes | |
| Interval< T > * | interval_ |
| Interval< T > * | defaultinterval_ |
| Interval< T > * | startlimits_ |
| Interval< T > * | stoplimits_ |
| Interval< T > * | steplimits_ |
Specifications for numerical intervals.
Intervals consist of a start + stop value and optionally a step value, in which case the Interval is a StepInterval.
For each of the interval components start, stop and step, separate limits can be set.
| NumInpIntervalSpec< T >::NumInpIntervalSpec | ( | bool | withstep = false |
) | [inline] |
| NumInpIntervalSpec< T >::NumInpIntervalSpec | ( | const Interval< T > & | interval | ) | [inline] |
| NumInpIntervalSpec< T >::NumInpIntervalSpec | ( | const NumInpIntervalSpec< T > & | o | ) | [inline] |
| NumInpIntervalSpec< T >::~NumInpIntervalSpec | ( | ) | [inline] |
| virtual NumInpIntervalSpec<T>* NumInpIntervalSpec< T >::clone | ( | ) | const [inline, virtual] |
Implements DataInpSpec.
| T NumInpIntervalSpec< T >::defaultValue | ( | int | idx = 0 |
) | const [inline] |
| T NumInpIntervalSpec< T >::defaultvalue_ | ( | int | idx = 0 |
) | const [inline, protected] |
| virtual float NumInpIntervalSpec< T >::getDefaultfValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual int NumInpIntervalSpec< T >::getDefaultIntValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual double NumInpIntervalSpec< T >::getDefaultValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual double NumInpIntervalSpec< T >::getdValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual float NumInpIntervalSpec< T >::getfValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual int NumInpIntervalSpec< T >::getIntValue | ( | int | idx = 0 |
) | const [inline, virtual] |
Sets the _values_ (with setText())
Reimplemented from DataInpSpec.
| virtual bool NumInpIntervalSpec< T >::hasLimits | ( | ) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| bool NumInpIntervalSpec< T >::hasStep | ( | ) | const [inline] |
| virtual bool NumInpIntervalSpec< T >::isInsideLimits | ( | int | idx = 0 |
) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| virtual bool NumInpIntervalSpec< T >::isUndef | ( | int | idx = 0 |
) | const [inline, virtual] |
Implements DataInpSpec.
| const Interval<T>* NumInpIntervalSpec< T >::limits | ( | int | idx = 0 |
) | const [inline] |
gets limits for interval components.
idx = 0: returns start limits idx = 1: returns stop limits idx = 2: returns step limits
| virtual int NumInpIntervalSpec< T >::nElems | ( | ) | const [inline, virtual] |
Reimplemented from DataInpSpec.
| T* NumInpIntervalSpec< T >::pt_value_ | ( | int | idx = 0, |
|
| bool | defval = false | |||
| ) | const [inline, protected] |
| virtual void NumInpIntervalSpec< T >::setDefaultValue | ( | const Interval< T > & | defaultintval | ) | [inline, virtual] |
| NumInpIntervalSpec& NumInpIntervalSpec< T >::setLimits | ( | const Interval< T > & | r, | |
| int | idx = -1 | |||
| ) | [inline] |
sets limits for interval components.
idx = 0: sets start limits idx = 1: sets stop limits idx = 2: sets step limits
idx = -1: sets start and stop limits idx = -2: sets start, stop and step limits
| virtual bool NumInpIntervalSpec< T >::setText | ( | const char * | s, | |
| int | idx = 0 | |||
| ) | [inline, virtual] |
Implements DataInpSpec.
| virtual void NumInpIntervalSpec< T >::setValue | ( | const Interval< T > & | intval | ) | [inline, virtual] |
| StepInterval<T>* NumInpIntervalSpec< T >::stpi | ( | bool | defval = false |
) | const [inline, protected] |
| virtual const char* NumInpIntervalSpec< T >::text | ( | int | idx = 0 |
) | const [inline, virtual] |
Implements DataInpSpec.
| T NumInpIntervalSpec< T >::value | ( | int | idx = 0 |
) | const [inline] |
| T NumInpIntervalSpec< T >::value_ | ( | int | idx = 0 |
) | const [inline, protected] |
Interval<T>* NumInpIntervalSpec< T >::defaultinterval_ [protected] |
Interval<T>* NumInpIntervalSpec< T >::interval_ [protected] |
Interval<T>* NumInpIntervalSpec< T >::startlimits_ [protected] |
Interval<T>* NumInpIntervalSpec< T >::steplimits_ [protected] |
Interval<T>* NumInpIntervalSpec< T >::stoplimits_ [protected] |
1.7.1