|
| void | Add (RangeType Range) |
| | Adds a range to the set. 更多...
|
| |
| bool | Contains (const RangeType &Range) const |
| | Checks whether this set contains the specified range. 更多...
|
| |
| bool | Contains (ElementValueOrConstRef Element) const |
| | Checks whether this set contains the specified element. 更多...
|
| |
| void | Empty () |
| | Removes a range from the set. 更多...
|
| |
| BoundsType | GetMaxBound () const |
| | Gets the range set's uppermost bound. 更多...
|
| |
| ElementType | GetMaxBoundValue () const |
| | Gets the value of the uppermost bound. 更多...
|
| |
| BoundsType | GetMinBound () const |
| | Gets the range set's lowest bound. 更多...
|
| |
| ElementType | GetMinBoundValue () const |
| | Gets the value of the lowest bound. 更多...
|
| |
| template<typename Allocator > |
| const void | GetRanges (TArray< RangeType, Allocator > &OutRanges) const |
| | Returns a read-only collection of the ranges contained in this set. 更多...
|
| |
| bool | HasMaxBound () const |
| | Checks whether the range has an uppermost bound. 更多...
|
| |
| bool | HasMinBound () const |
| | Checks whether the range has a lowest bound. 更多...
|
| |
| bool | IsEmpty () const |
| | Checks whether this range set is empty. 更多...
|
| |
| void | Merge (const TRangeSet &Other) |
| | Merges another range set into this set. 更多...
|
| |
| bool | Overlaps (const RangeType &Range) const |
| | Checks whether this range set overlaps with the specified range. 更多...
|
| |
| bool | Overlaps (const TRangeSet &Other) const |
| | Checks whether this range set overlaps with another. 更多...
|
| |
|
| TRangeSet () |
| | Default constructor.
|
| |
|
| ~TRangeSet () |
| | Destructor.
|
| |
template<typename ElementType>
class TRangeSet< ElementType >
Template for range sets.
- 待办事项:
- gmp: Implement more efficient storage of range sets
template<typename ElementType >
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.
- 参数
-