Interval support and convenience class.
More...
#include <peak_ipl/types/peak_ipl_interval.hpp>
|
| constexpr | Interval (T start, T end) |
| | Constructor for the interval.
|
| |
| constexpr T | Start () const |
| | Get the start value (inclusive) for the interval.
|
| |
| constexpr T | End () const |
| | Get the end value (inclusive) for the interval.
|
| |
| constexpr bool | InInterval (T value) const |
| | Check if the value is in the interval.
|
| |
template<typename T>
class peak::ipl::Interval< T >
Interval support and convenience class.
- Since
- 1.15
◆ Interval()
Constructor for the interval.
- Parameters
-
| start | The start value (inclusive) for the interval. |
| end | The end value (inclusive) for the interval. |
- Exceptions
-
◆ End()
Get the end value (inclusive) for the interval.
- Returns
- the end value.
- Since
- 1.15
◆ InInterval()
Check if the value is in the interval.
- Parameters
-
- Returns
- true if in the interval, false otherwise.
- Since
- 1.15
◆ Start()
Get the start value (inclusive) for the interval.
- Returns
- the start value.
- Since
- 1.15
The documentation for this class was generated from the following file: