#include <mi32/range.h>
Inheritance diagram for RANGE< _CT >:

Public Member Functions | |
| bool | Contains (const RANGE &rhs) const |
| bool | Contains (_CT value) const |
| void | Expand (_CT value) |
| void | Extend (const RANGE &rhs) |
| void | Extend (_CT minval, _CT maxval) |
| void | Extend (_CT value) |
| _CT | GetCenter () const |
| _CT | GetMaximum () const |
| _CT | GetMinimum () const |
| _CT | GetSize () const |
| void | Intersect (const RANGE &rhs) |
| bool | IsValid () const |
| _CT | Limit (_CT value) const |
| bool | operator!= (const RANGE &rhs) const |
| bool | operator== (const RANGE &rhs) const |
| bool | Overlaps (const RANGE &rhs) const |
| RANGE (_CT value) | |
| RANGE (_CT minval, _CT maxval) | |
| RANGE () | |
| void | Set (_CT minval, _CT maxval) |
| void | SetInvalid () |
| void | SetMaximum (_CT val) |
| void | SetMinimum (_CT val) |
Designed to work with signed integer and floating-point data types, unsigned types are not supported.
Definition at line 56 of file range.h.
|
|||||||||
|
Default constructor, initialize to invalid (empty) range.
|
|
||||||||||||||||
|
Construct range with specified minimum and maximum values.
|
|
||||||||||
|
Construct range to include only specified value.
|
|
||||||||||
|
Determine if range containes specified range.
|
|
||||||||||
|
Determine if range contains specified value.
|
|
||||||||||
|
Expand range by specified amount.
|
|
||||||||||
|
Extend range to include specified range.
|
|
||||||||||||||||
|
Extend range to include specified range.
|
|
||||||||||
|
Extend range to include specified value.
|
|
|||||||||
|
Get center of range.
|
|
|||||||||
|
Get maximum value in range.
|
|
|||||||||
|
Get minimum value in range.
|
|
|||||||||
|
Get 'size' of range.
|
|
||||||||||
|
Intersect range with another range.
|
|
|||||||||
|
Determine if range is valid.
|
|
||||||||||
|
Limit the value based on the current range Can be used to replace the bound() macro.
|
|
||||||||||
|
Inequality operator.
|
|
||||||||||
|
Equality operator.
|
|
||||||||||
|
Determine if range overlaps another range.
|
|
||||||||||||||||
|
Set minimum and maximum values.
|
|
|||||||||
|
Set range to be "invalid" (empty).
|
|
||||||||||
|
Set maximum value.
|
|
||||||||||
|
Set minimum value.
|
1.3.8-20040913