|
| constexpr | RangeT (T minimum, T maximum, T increment) |
| | Constructs a range with specified minimum, maximum, and increment values.
|
| PEAK_COMMON_NO_DISCARD constexpr T | GetIncrement () const |
| | Retrieves the increment value associated with this range.
|
| constexpr bool | operator== (const RangeT &rhs) const |
| | Compares this range with another for equality.
|
| constexpr bool | operator!= (const RangeT &rhs) const |
| | Compares this range with another for inequality.
|
| constexpr | IntervalT (T minimum, T maximum) |
| | Constructs an interval with the given lower and upper bounds.
|
| PEAK_COMMON_NO_DISCARD constexpr T | GetMinimum () const |
| | Returns the lower boundary of the interval.
|
| PEAK_COMMON_NO_DISCARD constexpr T | GetMaximum () const |
| | Returns the upper boundary of the interval.
|
| template<typename H> |
| constexpr bool | operator== (const IntervalT< H > &rhs) const |
| | Compares two intervals for equality (integral types).
|
| template<typename H> |
| constexpr bool | operator== (const IntervalT< H > &rhs) const |
| | Compares two intervals for approximate equality (floating-point types).
|
| constexpr bool | operator!= (const IntervalT &rhs) const |
| | Inequality comparison operator.
|
| PEAK_COMMON_NO_DISCARD std::string | ToString () const |
| | Returns a string representation of the interval.
|
template<typename T>
class peak::common::detail::RangeT< T >
Represents a numeric range with defined boundaries and a fixed increment.
A RangeT models a continuous sequence of values starting from a minimum value, ending at a maximum value, and progressing in steps defined by an increment. It supports arithmetic types such as integers and floating-point numbers.
This class ensures that the increment does not exceed the total span between the minimum and maximum bounds. The range is inclusive of its boundary values.
- Template Parameters
-
| T | The numeric type used for the range values. Must be an arithmetic type (e.g., int, float). |
- Since
- ids_peak_common 1.0