Navigation
API > API/Runtime > API/Runtime/Core
Template for range sets.
| Name | TRangeSet |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/RangeSet.h |
| Include Path | #include "Math/RangeSet.h" |
Syntax
template<typename ElementType>
class TRangeSet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRangeSet() |
Default constructor. | Math/RangeSet.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TRangeSet() |
Destructor. | Math/RangeSet.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BoundsType | TRangeBound< ElementType > | Math/RangeSet.h | |
| ElementValueOrConstRef | TCallTraits< ElementType >::ParamType | Math/RangeSet.h | |
| RangeType | TRange< ElementType > | Math/RangeSet.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Ranges | TArray< RangeType > | Holds the set of ranges. | Math/RangeSet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Adds a range to the set. | Math/RangeSet.h | ||
| Checks whether this set contains the specified range. | Math/RangeSet.h | ||
bool Contains
(
ElementValueOrConstRef Element |
Checks whether this set contains the specified element. | Math/RangeSet.h | |
void Empty() |
Removes a range from the set.Ranges that overlap with the removed range will be split. | Math/RangeSet.h | |
| Gets the range set's uppermost bound. | Math/RangeSet.h | ||
ElementType GetMaxBoundValue () |
Gets the value of the uppermost bound. | Math/RangeSet.h | |
| Gets the range set's lowest bound. | Math/RangeSet.h | ||
ElementType GetMinBoundValue () |
Gets the value of the lowest bound. | Math/RangeSet.h | |
| Returns a read-only collection of the ranges contained in this set. | Math/RangeSet.h | ||
bool HasMaxBound () |
Checks whether the range has an uppermost bound. | Math/RangeSet.h | |
bool HasMinBound () |
Checks whether the range has a lowest bound. | Math/RangeSet.h | |
bool IsEmpty() |
Checks whether this range set is empty. | Math/RangeSet.h | |
void Merge
(
const TRangeSet& Other |
Merges another range set into this set. | Math/RangeSet.h | |
| Checks whether this range set overlaps with the specified range. | Math/RangeSet.h | ||
| Checks whether this range set overlaps with another. | Math/RangeSet.h |