![]() |
IDSpeakIPL
v1.8.0
|
Range support and convenience class. More...
#include <peak_ipl/types/peak_ipl_range.hpp>
Public Member Functions | |
| constexpr | Range (T min, T max, T inc) |
| Constructor for the Range. More... | |
| PEAK_IPL_NO_DISCARD constexpr T | Minimum () const |
| Get the minimum value for the range. More... | |
| PEAK_IPL_NO_DISCARD constexpr T | Maximum () const |
| Get the maximum value for the range. More... | |
| PEAK_IPL_NO_DISCARD constexpr T | Increment () const |
| Get the increment value for the range. More... | |
| PEAK_IPL_NO_DISCARD constexpr std::tuple< T, T, T > | GetRange () const |
| Get the range as tuple. More... | |
| PEAK_IPL_NO_DISCARD constexpr bool | InRange (T value) const |
| Check if the value is in range. More... | |
Range support and convenience class.
|
inline |
Constructor for the Range.
| min | The minimum value for the range. |
| max | The minimum value for the range. |
| inc | The increment value for the range. |
| InvalidArgumentException |
|
inline |
Get the range as tuple.
|
inline |
Get the increment value for the range.
|
inline |
Check if the value is in range.
| value | The value to check. |
|
inline |
Get the maximum value for the range.
|
inline |
Get the minimum value for the range.