RTP Trace System
1.0
|
#include <range.h>
Public Member Functions | |
Range () | |
Range (const T min, const T max, const T value) | |
void | init (const T min, const T max, const T value) |
T | getMin () const |
T | getMax () const |
T | getValue () const |
void | setLimits (const T min, const T max) |
void | setValue (const T value) |
Range< T > & | operator= (const Range< T > &range) |
int | operator== (const Range< T > &ti) const |
int | operator!= (const Range< T > &ti) const |
Public Attributes | |
T | Min |
T | Max |
T | Value |
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.
Create new range with given parameters.
min | Minimum. |
max | Maximum. |
value | Value between Minimum and Maximum. |
Initialize range with given parameters.
min | Minimum. |
max | Maximum. |
value | Value between Minimum and Maximum. |
Implementation of = operator
Set limits.
min | Minimum. |
max | Maximum. |
Set value.
value | Value. |