![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RangeSet.h>
Public Member Functions | |
| TRangeSet () | |
| ~TRangeSet () | |
| void | Add (RangeType Range) |
| void | Merge (const TRangeSet &Other) |
| void | Empty () |
| bool | Contains (ElementValueOrConstRef Element) const |
| bool | Contains (const RangeType &Range) const |
| BoundsType | GetMinBound () const |
| ElementType | GetMinBoundValue () const |
| BoundsType | GetMaxBound () const |
| ElementType | GetMaxBoundValue () const |
| template<typename Allocator > | |
| const void | GetRanges (TArray< RangeType, Allocator > &OutRanges) const |
| bool | HasMinBound () const |
| bool | HasMaxBound () const |
| bool | IsEmpty () const |
| bool | Overlaps (const RangeType &Range) const |
| bool | Overlaps (const TRangeSet &Other) const |
Friends | |
| class FArchive & | operator<< (class FArchive &Ar, TRangeSet &RangeSet) |
Template for range sets.
|
inline |
Default constructor.
Adds a range to the set.
This method merges overlapping ranges into a single range (i.e. {[1, 5], [4, 6]} becomes [1, 6]). Adjacent ranges (i.e. {[1, 4), [4, 6)} are also merged.
| Range | The range to add. |
|
inline |
Checks whether this set contains the specified range.
| Range | The range to check. |
|
inline |
Checks whether this set contains the specified element.
| Element | The element to check. |
Removes a range from the set.
Ranges that overlap with the removed range will be split.
| Range | The range to remove. Removes all ranges from the set. |
|
inline |
Gets the range set's uppermost bound.
|
inline |
Gets the value of the uppermost bound.
Use HasMaxBound() to ensure that this range actually has an upper bound.
|
inline |
Gets the range set's lowest bound.
|
inline |
Gets the value of the lowest bound.
Use HasMinBound() to ensure that this range set actually has a lowest bound.
|
inline |
Returns a read-only collection of the ranges contained in this set.
| Allocator | The array allocator to use. |
| OutRanges | Will contain the collection of ranges. |
Checks whether the range has an uppermost bound.
Checks whether the range has a lowest bound.
Checks whether this range set is empty.
|
inline |
Merges another range set into this set.
| Other | The range set to merge. |
|
inline |
Checks whether this range set overlaps with the specified range.
| Range | The range to check. |
|
inline |
Checks whether this range set overlaps with another.
| Other | The other range set. |
|
friend |
Serializes the given range set from or into the specified archive.
| Ar | The archive to serialize from or into. |
| RangeSet | The range set to serialize. |