38template <
typename ValueType>
75 return Range (start, start);
202 JUCE_CONSTEXPR
bool operator!= (
Range other)
const noexcept {
return start != other.start || end != other.
end; }
211 return start <= position && position < end;
217 return jlimit (start, end, value);
279 Range r (first, first);
285 if (r.end < v) r.end = v;
286 if (v < r.start) r.start = v;
ElementType * end() noexcept
static Range withStartAndLength(const ValueType startValue, const ValueType length) noexcept
void setEnd(const ValueType newEnd) noexcept
Range constrainRange(Range rangeToConstrain) const noexcept
JUCE_CONSTEXPR Range withEnd(const ValueType newEnd) const noexcept
JUCE_CONSTEXPR Range getIntersectionWith(Range other) const noexcept
JUCE_CONSTEXPR Range expanded(ValueType amount) const noexcept
JUCE_CONSTEXPR Range withStart(const ValueType newStart) const noexcept
JUCE_CONSTEXPR ValueType getStart() const noexcept
JUCE_CONSTEXPR Range operator+(const ValueType amountToAdd) const noexcept
JUCE_CONSTEXPR Range movedToEndAt(const ValueType newEnd) const noexcept
JUCE_CONSTEXPR bool contains(const ValueType position) const noexcept
JUCE_CONSTEXPR Range operator-(const ValueType amountToSubtract) const noexcept
JUCE_CONSTEXPR Range withLength(const ValueType newLength) const noexcept
JUCE_CONSTEXPR bool isEmpty() const noexcept
JUCE_CONSTEXPR Range()=default
ValueType clipValue(const ValueType value) const noexcept
JUCE_CONSTEXPR ValueType getLength() const noexcept
static Range findMinAndMax(const ValueType *values, int numValues) noexcept
Range operator+=(const ValueType amountToAdd) noexcept
JUCE_CONSTEXPR Range(const ValueType startValue, const ValueType endValue) noexcept
JUCE_CONSTEXPR bool intersects(Range other) const noexcept
static JUCE_CONSTEXPR Range between(const ValueType position1, const ValueType position2) noexcept
void setLength(const ValueType newLength) noexcept
void setStart(const ValueType newStart) noexcept
Range & operator=(const Range &)=default
JUCE_CONSTEXPR Range(const Range &)=default
JUCE_CONSTEXPR bool contains(Range other) const noexcept
Range operator-=(const ValueType amountToSubtract) noexcept
JUCE_CONSTEXPR Range getUnionWith(Range other) const noexcept
JUCE_CONSTEXPR Range getUnionWith(const ValueType valueToInclude) const noexcept
static JUCE_CONSTEXPR Range emptyRange(const ValueType start) noexcept
JUCE_CONSTEXPR ValueType getEnd() const noexcept
JUCE_CONSTEXPR Range movedToStartAt(const ValueType newStart) const noexcept