![]() |
Image Component Library (ICL)
|
class representing a range defined by min and max value More...
#include <Range.h>
Public Member Functions | |
| 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... | |
| virtual bool | contains (Type value) const |
| tests whether a given value is inside of this range 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... | |
Static Public Member Functions | |
| 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... | |
Public Attributes | |
| Type | minVal |
| minimum value of this range More... | |
| Type | maxVal |
| maximum value of this range More... | |
class representing a range defined by min and max value
|
inlinevirtual |
|
inline |
create an empty range (min = max = 0)
|
inline |
create a special Range
|
inline |
casts this range into another depth
|
inlinevirtual |
tests whether a given value is inside of this range
Reimplemented in icl::utils::SteppingRange< Type >.
|
inline |
extends the range so that the given value is within this range
|
inline |
extends the range so that the given range is within this range
|
inlinestatic |
estimate range of given iterator range (using std::for_each)
|
inline |
return max-min
|
inlinestatic |
returns inverted limits range [numeric-limits.max,numeric-limits.min]
|
inlinestatic |
returns type range (using std::numeric_limits<Type>)
|
inline |
|
inline |
| Type icl::utils::Range< Type >::maxVal |
maximum value of this range
| Type icl::utils::Range< Type >::minVal |
minimum value of this range
1.8.15