Range support and convenience class.
More...
#include <peak_ipl/types/peak_ipl_range.hpp>
|
| constexpr | Range (T min, T max, T inc) |
| | Constructor for the Range.
|
| |
| constexpr T | Minimum () const |
| | Get the minimum value for the range.
|
| |
| constexpr T | Maximum () const |
| | Get the maximum value for the range.
|
| |
| constexpr T | Increment () const |
| | Get the increment value for the range.
|
| |
| constexpr std::tuple< T, T, T > | GetRange () const |
| | Get the range as tuple.
|
| |
| constexpr bool | InRange (T value) const |
| | Check if the value is in range.
|
| |
template<typename T>
class peak::ipl::Range< T >
Range support and convenience class.
◆ Range()
Constructor for the Range.
- Parameters
-
| min | The minimum value for the range. |
| max | The minimum value for the range. |
| inc | The increment value for the range. |
- Exceptions
-
◆ GetRange()
Get the range as tuple.
- Returns
- the Range as tuple with <minimum, maximum, increment> in that order.
◆ Increment()
Get the increment value for the range.
- Returns
- the increment value.
◆ InRange()
Check if the value is in range.
- Parameters
-
- Returns
- true if in range, false otherwise.
◆ Maximum()
Get the maximum value for the range.
- Returns
- the maximum value.
◆ Minimum()
Get the minimum value for the range.
- Returns
- the minimum value.
The documentation for this class was generated from the following file: