TRangeSet

Template for range sets.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/RangeSet.h

Include

#include "Math/RangeSet.h"

Syntax

template<typename ElementType>
class TRangeSet

Remarks

Template for range sets.

Constructors

Name Description

Public function

TRangeSet()

Default constructor.

Destructors

Name Description

Public function

~TRangeSet()

Destructor.

Functions

Name Description

Public function

void

 

Add

(
    RangeType Range
)

Adds a range to the set.

Public function Const

bool

 

Contains

(
    const RangeType& Range
)

Checks whether this set contains the specified range.

Public function Const

bool

 

Contains

(
    ElementValueOrConstRef Element
)

Checks whether this set contains the specified element.

Public function

void

 

Empty()

Removes a range from the set.

Ranges that overlap with the removed range will be split.

Public function Const

BoundsType

 

GetMaxBound()

Gets the range set's uppermost bound.

Public function Const

ElementType

 

GetMaxBoundValue()

Gets the value of the uppermost bound.

Public function Const

BoundsType

 

GetMinBound()

Gets the range set's lowest bound.

Public function Const

ElementType

 

GetMinBoundValue()

Gets the value of the lowest bound.

Public function Const

const void

 

GetRanges

(
    TArray< RangeType, Allocator >& Ou...
)

Returns a read-only collection of the ranges contained in this set.

Public function Const

bool

 

HasMaxBound()

Checks whether the range has an uppermost bound.

Public function Const

bool

 

HasMinBound()

Checks whether the range has a lowest bound.

Public function Const

bool

 

IsEmpty()

Checks whether this range set is empty.

Public function

void

 

Merge

(
    const TRangeSet& Other
)

Merges another range set into this set.

Public function Const

bool

 

Overlaps

(
    const RangeType& Range
)

Checks whether this range set overlaps with the specified range.

Public function Const

bool

 

Overlaps

(
    const TRangeSet& Other
)

Checks whether this range set overlaps with another.

Typedefs

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss