![]() |
Image Component Library (ICL)
|
class representing a range with defined stepping More...
#include <SteppingRange.h>
Public Member Functions | |
| SteppingRange () | |
| create an empty range (min = max = 0) More... | |
| SteppingRange (Type minVal, Type maxVal, Type stepping) | |
| create a special Rage More... | |
| template<class dstType > | |
| const SteppingRange< dstType > | castTo () const |
| casts this range into another depth More... | |
| virtual bool | contains (Type value) const |
| tests whether a given value is inside of this range More... | |
| Type | nearest (Type value) |
| returns the nearest value to the given one More... | |
Public Member Functions inherited from icl::utils::Range< Type > | |
| virtual | ~Range () |
| Range () | |
| create an empty range (min = max = 0) More... | |
| Range (Type minVal, Type maxVal) | |
| create a special Range More... | |
| Type | getLength () const |
| return max-min More... | |
| template<class dstType > | |
| const Range< dstType > | castTo () const |
| casts this range into another depth More... | |
| bool | operator== (const Range< Type > &other) const |
| bool | operator!= (const Range< Type > &other) const |
| void | extend (const Type &t) |
| extends the range so that the given value is within this range More... | |
| void | extend (const Range &r) |
| extends the range so that the given range is within this range More... | |
Public Attributes | |
| Type | stepping |
| internal stepping parameter More... | |
Public Attributes inherited from icl::utils::Range< Type > | |
| Type | minVal |
| minimum value of this range More... | |
| Type | maxVal |
| maximum value of this range More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from icl::utils::Range< Type > | |
| static Range< Type > | limits () |
| returns type range (using std::numeric_limits<Type>) More... | |
| static Range< Type > | inv_limits () |
| returns inverted limits range [numeric-limits.max,numeric-limits.min] More... | |
| static Range< Type > | from (const Type *begin, const Type *end) |
| estimate range of given iterator range (using std::for_each) More... | |
class representing a range with defined stepping
A Stepping range is a well defined interval I = [minVal,maxVal] with an also well defined stepping e.g. S. the SteppingRange contains all values {minVal, minVal+S, minVal+2*S,...} that are less then or equal to the maxVal
|
inline |
create an empty range (min = max = 0)
|
inline |
create a special Rage
|
inline |
casts this range into another depth
|
inlinevirtual |
tests whether a given value is inside of this range
Reimplemented from icl::utils::Range< Type >.
|
inline |
returns the nearest value to the given one
-1st: value is clipped to the underlying range -2nd: if value is inside the range, the nearest implicit step is returned
| Type icl::utils::SteppingRange< Type >::stepping |
internal stepping parameter
1.8.15