A range of values limited by an lower and upper value that is included in the range.
More...
#include <Imt.Base.Core.Util/Range.h>
template<typename ValueType>
class imt::base::core::util::Range< ValueType >
A range of values limited by an lower and upper value that is included in the range.
◆ Range() [1/2]
template<typename ValueType >
Constructor.
The thresholds are part of the range.
- Parameters
-
lowerThreshold | Lower threshold of the range. |
upperThreshold | Upper threshold of the range. |
◆ Range() [2/2]
template<typename ValueType >
Copy constructor.
- Parameters
-
other | Other range to copy. |
◆ ~Range()
template<typename ValueType >
◆ getLowerThreshold()
template<typename ValueType >
Returns the lower threshold.
- Returns
- Reference to the lower threshold.
◆ getUpperThreshold()
template<typename ValueType >
Returns the upper threshold.
- Returns
- Reference to the upper threshold.
◆ isAbove()
template<typename ValueType >
Returns true if the given value is above the upper threshold of the range.
- Parameters
-
- Returns
- True if the given value is above the upper threshold of the range.
◆ isBelow()
template<typename ValueType >
Returns true if the given value is below the lower threshold of the range.
- Parameters
-
- Returns
- True if the given value is below the lower threshold of the range.
◆ isInRange()
template<typename ValueType >
Returns true if the given value is inside the range.
- Parameters
-
- Returns
- True if the given value is inside the range.
◆ truncateValue()
template<typename ValueType >
Truncates the value to the range.
- Parameters
-
value | The value to truncate. |
- Returns
- Return the truncated value.
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.Core.Util/Range.h