|
| T | clamp (const T &v) const |
| | Clamps the argument value to be between the low and high limits. More... |
| |
| bool | contains (const T &v) const |
| | Checks if the argument value fits into this range. More... |
| |
|
void | expand (const T &v) |
| | Expands the range to include the given value. |
| |
|
void | expand (const RangeT &that) |
| | Expands the range to include the given range. |
| |
|
T | high () const |
| | The upper limit of the range. |
| |
| bool | isEmpty () const |
| | Check ifthe range is empty. More... |
| |
|
T | low () const |
| | The lower limit of the range. |
| |
| bool | operator!= (const RangeT &that) const |
| | Compares two RangeT objects. More... |
| |
| bool | operator== (const RangeT &that) const |
| | Compares two RangeT objects. More... |
| |
| | RangeT (const T &low, const T &high) |
| | Create a new range with low and high values. More... |
| |
|
void | reset (const T &v) |
| | Sets the low-, and high values to given value. |
| |
|
T | span () const |
| | The difference between the upper and lower limit. |
| |
|
T | spanAbs () const |
| | Absolute value of the span. |
| |
template<class T>
class Nimble::RangeT< T >
Numeric range representation.
By default the low, and high values are set to zero.