|
constexpr | Range (ValueType startValue, ValueType endValue) noexcept |
| Constructs a range with given start and end values.
|
|
constexpr | Range ()=default |
| Constructs an empty range.
|
|
constexpr | Range (const Range &)=default |
| Copy constructor.
|
|
constexpr | Range (Range &&)=default |
| Move constructor.
|
|
constexpr void | setStart (ValueType newStart) noexcept |
| Sets a new start value.
|
|
constexpr void | setEnd (ValueType newEnd) noexcept |
| Sets a new end value.
|
|
constexpr ValueType | getStart () const noexcept |
| Returns the start of the range.
|
|
constexpr ValueType | getLength () const noexcept |
| Returns the length of the range.
|
|
constexpr ValueType | getEnd () const noexcept |
| Returns the end of the range.
|
|
template<is::realNumber ValueType>
class vctr::Range< ValueType >
A simple range class.
The interface is intended to be compatible with the juce::Range class.