Public Member Functions | |
| StepInterval () | |
| StepInterval (const T &start, const T &stop, const T &step) | |
| StepInterval (const Interval< T > &) | |
| StepInterval (const StepInterval< T > &si) | |
| StepInterval< T > & | operator= (const Interval< T > &) |
| virtual bool | isUdf () const |
| virtual bool | hasStep () const |
| virtual StepInterval< T > * | clone () const |
| void | set (const T &start, const T &stop, const T &step) |
| template<class X > | |
| const StepInterval< T > & | setFrom (const Interval< X > &) |
| bool | isEqual (const StepInterval< T > &i, const T &eps) const |
| bool | operator== (const StepInterval< T > &) const |
| bool | operator!= (const StepInterval< T > &) const |
| T | atIndex (int) const |
| template<class X > | |
| int | getIndex (const X &) const |
| template<class X > | |
| float | getfIndex (const X &) const |
| template<class X > | |
| int | nearestIndex (const X &) const |
| template<class X > | |
| T | snap (const X &) const |
| int | nrSteps () const |
| virtual void | sort (bool asc=true) |
| void | scale (const T &) |
| T | snappedCenter () const |
| bool | isCompatible (const StepInterval< T > &, float eps=(1e-10)) const |
| T | snapStep (const T &inpstep) const |
| template<> | |
| int | nrSteps () const |
| template<> | |
| bool | isCompatible (const StepInterval< double > &b, float eps) const |
Public Attributes | |
| T | step |
Interval with step.
| StepInterval< T >::StepInterval | ( | ) | [inline] |
| StepInterval< T >::StepInterval | ( | const T & | start, | |
| const T & | stop, | |||
| const T & | step | |||
| ) | [inline] |
| StepInterval< T >::StepInterval | ( | const Interval< T > & | intv | ) | [inline] |
| StepInterval< T >::StepInterval | ( | const StepInterval< T > & | si | ) | [inline] |
| T StepInterval< T >::atIndex | ( | int | idx | ) | const [inline] |
| StepInterval< T > * StepInterval< T >::clone | ( | ) | const [inline, virtual] |
Reimplemented from Interval< T >.
| float StepInterval< T >::getfIndex | ( | const X & | t | ) | const [inline] |
| int StepInterval< T >::getIndex | ( | const X & | t | ) | const [inline] |
| virtual bool StepInterval< T >::hasStep | ( | ) | const [inline, virtual] |
Reimplemented from Interval< T >.
| bool StepInterval< T >::isCompatible | ( | const StepInterval< T > & | b, | |
| float | eps = (1e-10) | |||
| ) | const [inline] |
epsilon refers to the steps, i.e eps=0.1 allows b to be 0.1 steps apart.
| bool StepInterval< double >::isCompatible | ( | const StepInterval< double > & | b, | |
| float | eps | |||
| ) | const [inline] |
| bool StepInterval< T >::isEqual | ( | const StepInterval< T > & | i, | |
| const T & | eps | |||
| ) | const [inline] |
| bool StepInterval< T >::isUdf | ( | ) | const [inline, virtual] |
Reimplemented from Interval< T >.
| int StepInterval< T >::nearestIndex | ( | const X & | x | ) | const [inline] |
| int StepInterval< double >::nrSteps | ( | ) | const [inline] |
| int StepInterval< T >::nrSteps | ( | ) | const [inline] |
| bool StepInterval< T >::operator!= | ( | const StepInterval< T > & | i | ) | const [inline] |
| StepInterval< T > & StepInterval< T >::operator= | ( | const Interval< T > & | intv | ) | [inline] |
Reimplemented from Interval< T >.
| bool StepInterval< T >::operator== | ( | const StepInterval< T > & | i | ) | const [inline] |
| void StepInterval< T >::scale | ( | const T & | factor | ) | [inline, virtual] |
Reimplemented from Interval< T >.
| void StepInterval< T >::set | ( | const T & | start, | |
| const T & | stop, | |||
| const T & | step | |||
| ) | [inline] |
| const StepInterval< T > & StepInterval< T >::setFrom | ( | const Interval< X > & | i | ) | [inline] |
Reimplemented from Interval< T >.
| T StepInterval< T >::snappedCenter | ( | ) | const [inline] |
| T StepInterval< T >::snapStep | ( | const T & | inpstep | ) | const [inline] |
Snaps inpstep to a positive multiple of step.
| void StepInterval< T >::sort | ( | bool | asc = true |
) | [inline, virtual] |
Reimplemented from Interval< T >.
| T StepInterval< T >::step |
1.7.1