#include <range.hpp>
|
| constexpr | Range ()=default |
| constexpr | Range (T s, T e) |
| constexpr T | length () const |
| | Length of the range.
|
| constexpr bool | empty () const |
| | Whether the range is empty (start >= end).
|
| constexpr bool | contains (T value) const |
| | Whether this range contains a value.
|
| constexpr bool | contains (const Range &other) const |
| | Whether this range fully contains another range.
|
| constexpr bool | intersects (const Range &other) const |
| | Whether this range intersects another range.
|
| constexpr Range | intersection (const Range &other) const |
| | Intersection of two ranges (empty if no overlap).
|
| constexpr Range | enclosing_union (const Range &other) const |
| | Union of two ranges (bounding box — may include a gap).
|
| constexpr T | constrain (T value) const |
| | Constrain a value to this range [start, end).
|
| constexpr Range | expanded (T value) const |
| | Expand range to include a value.
|
| constexpr bool | operator== (const Range &other) const |
| constexpr bool | operator!= (const Range &other) const |
◆ Range() [1/2]
◆ Range() [2/2]
◆ constrain()
Constrain a value to this range [start, end).
◆ contains() [1/2]
Whether this range fully contains another range.
◆ contains() [2/2]
Whether this range contains a value.
◆ empty()
Whether the range is empty (start >= end).
◆ enclosing_union()
Union of two ranges (bounding box — may include a gap).
◆ expanded()
Expand range to include a value.
◆ from_start_length()
Create a range from start + length.
◆ intersection()
Intersection of two ranges (empty if no overlap).
◆ intersects()
Whether this range intersects another range.
◆ length()
◆ operator!=()
◆ operator==()
◆ end
◆ start
The documentation for this struct was generated from the following file:
- /home/runner/work/pulp/pulp/core/runtime/include/pulp/runtime/range.hpp