|
|
This class implements the Range datatype template. It manages a value which has to be in the range from Min to Max. The only allowed exception is the value 0, which is available even if it is outside of the given range.
|
Default constructor.
|
Create new range with given parameters.
Parameters:
min | Minimum. |
max | Maximum. |
value | Value between Minimum and Maximum. |
void |
Initialize range with given parameters.
Parameters:
min | Minimum. |
max | Maximum. |
value | Value between Minimum and Maximum. |
inline T |
[const]
Get minimum.
Returns: Minimum.
inline T |
[const]
Get maximum.
Returns: Maximum.
inline T |
[const]
Get value.
Returns: Value.
inline void |
Set limits.
Parameters:
min | Minimum. |
max | Maximum. |
inline void |
Set value.
Parameters:
value | Value. |
Range<T>& |
Implementation of = operator
inline int |
[const]
== operator.
inline int |
[const]
!= operator.
T |
T |
T |