openshot-audio
0.1.2
|
#include <juce_Range.h>
Static Public Member Functions | |
static Range | between (const ValueType position1, const ValueType position2) noexcept |
static Range | withStartAndLength (const ValueType startValue, const ValueType length) noexcept |
static Range | emptyRange (const ValueType start) noexcept |
static Range | findMinAndMax (const ValueType *values, int numValues) noexcept |
A general-purpose range object, that simply represents any linear range with a start and end point.
Note that when checking whether values fall within the range, the start value is considered to be inclusive, and the end of the range exclusive.
The templated parameter is expected to be a primitive integer or floating point type, though class types could also be used if they behave in a number-like way.
Constructs an empty range.
|
inlinenoexcept |
Constructs a range with given start and end values.
|
inlinenoexcept |
Constructs a copy of another range.
|
inlinestaticnoexcept |
Returns the range that lies between two positions (in either order).
|
inlinenoexcept |
Returns the nearest value to the one supplied, which lies within the range.
|
inlinenoexcept |
Returns a given range, after moving it forwards or backwards to fit it within this range.
If the supplied range has a greater length than this one, the return value will be this range.
Otherwise, if the supplied range is smaller than this one, the return value will be the new range, shifted forwards or backwards so that it doesn't extend beyond this one, but keeping its original length.
|
inlinenoexcept |
Returns true if the given position lies inside this range.
|
inlinenoexcept |
Returns true if the given range lies entirely inside this range. When making this comparison, the start value is considered to be inclusive, and the end of the range exclusive.
|
inlinestaticnoexcept |
Returns a range with the specified start position and a length of zero.
|
inlinestaticnoexcept |
Scans an array of values for its min and max, and returns these as a Range.
|
inlinenoexcept |
Returns the end of the range.
|
inlinenoexcept |
Returns the range that is the intersection of the two ranges, or an empty range with an undefined start position if they don't overlap.
|
inlinenoexcept |
Returns the length of the range.
|
inlinenoexcept |
Returns the start of the range.
|
inlinenoexcept |
Returns the smallest range that contains both this one and the other one.
|
inlinenoexcept |
Returns the smallest range that contains both this one and the given value.
|
inlinenoexcept |
Returns true if the given range intersects this one.
|
inlinenoexcept |
Returns true if the range has a length of zero.
|
inlinenoexcept |
Returns a range with the same length as this one, but moved to have the given end position.
|
inlinenoexcept |
Returns a range with the same length as this one, but moved to have the given start position.
|
inlinenoexcept |
|
inlinenoexcept |
Returns a range that is equal to this one with an amount added to its start and end.
|
inlinenoexcept |
Adds an amount to the start and end of the range.
|
inlinenoexcept |
Returns a range that is equal to this one with the specified amount subtracted from its start and end.
|
inlinenoexcept |
Subtracts an amount from the start and end of the range.
|
inlinenoexcept |
Copies another range object.
|
inlinenoexcept |
|
inlinenoexcept |
Changes the end position of the range, leaving the start unchanged. If the new end position is below the current start of the range, the start point will be pushed back to equal the new end point.
|
inlinenoexcept |
Changes the length of the range. Lengths less than zero are treated as zero.
|
inlinenoexcept |
Changes the start position of the range, leaving the end position unchanged. If the new start position is higher than the current end of the range, the end point will be pushed along to equal it, leaving an empty range at the new position.
|
inlinenoexcept |
Returns a range with the same start position as this one, but a different end. If the new end position is below the current start of the range, the start point will be pushed back to equal the new end point.
|
inlinenoexcept |
Returns a range with the same start as this one, but a different length. Lengths less than zero are treated as zero.
|
inlinenoexcept |
Returns a range with the same end as this one, but a different start. If the new start position is higher than the current end of the range, the end point will be pushed along to equal it, returning an empty range at the new position.
|
inlinestaticnoexcept |
Returns a range with a given start and length.