![]() |
VCTR
|
A simple range class. More...
Public Types | |
using | value_type = ValueType |
Public Member Functions | |
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. | |
A simple range class.
The interface is intended to be compatible with the juce::Range class.
|
inlineconstexprnoexcept |
Constructs a range with given start and end values.
The end value must not be smaller than the start value.
|
constexprdefault |
Constructs an empty range.
|
constexprdefault |
Copy constructor.
|
constexprdefault |
Move constructor.
|
inlineconstexprnoexcept |
Returns the end of the range.
|
inlineconstexprnoexcept |
Returns the length of the range.
|
inlineconstexprnoexcept |
Returns the start of the range.
|
inlineconstexprnoexcept |
Sets a new end value.
|
inlineconstexprnoexcept |
Sets a new start value.