Navigation
API > API/Runtime > API/Runtime/Core
Template for range bounds.
| Name | TRangeBound |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/RangeBound.h |
| Include Path | #include "Math/RangeBound.h" |
Syntax
template<typename ElementType>
class TRangeBound
Derived Classes
TRangeBound derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRangeBound () |
Default constructor. | Math/RangeBound.h | |
TRangeBound
(
ElementValueOrConstRef InValue |
Creates a closed bound that includes the specified value. | Math/RangeBound.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementValueOrConstRef | TCallTraits< ElementType >::ParamType | Math/RangeBound.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Type | TEnumAsByte< ERangeBoundTypes::Type > | Holds the type of the bound. | Math/RangeBound.h | |
| Value | ElementType | Holds the bound's value. | Math/RangeBound.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementValueOrConstRef GetValue () |
Gets the bound's value. | Math/RangeBound.h | |
bool IsClosed() |
Checks whether the bound is closed. | Math/RangeBound.h | |
bool IsExclusive() |
Checks whether the bound is exclusive. | Math/RangeBound.h | |
bool IsInclusive() |
Checks whether the bound is inclusive. | Math/RangeBound.h | |
bool IsOpen() |
Checks whether the bound is open. | Math/RangeBound.h | |
void SetValue
(
ElementValueOrConstRef NewValue |
Sets the bound's value, maintining the inclusivity of the bound | Math/RangeBound.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TRangeBound Exclusive
(
ElementValueOrConstRef Value |
Returns a closed bound that excludes the specified value. | Math/RangeBound.h | |
static TRangeBound FlipInclusion
(
const TRangeBound& Bound |
Returns the given bound with its inclusion flipped between inclusive and exclusive. | Math/RangeBound.h | |
static TRangeBound Inclusive
(
ElementValueOrConstRef Value |
Returns a closed bound that includes the specified value. | Math/RangeBound.h | |
static const TRangeBound & MaxLower
(
const TRangeBound& A, |
Returns the greater of two lower bounds. | Math/RangeBound.h | |
static const TRangeBound & MaxUpper
(
const TRangeBound& A, |
Returns the greater of two upper bounds. | Math/RangeBound.h | |
static const TRangeBound & MinLower
(
const TRangeBound& A, |
Returns the lesser of two lower bounds. | Math/RangeBound.h | |
static const TRangeBound & MinUpper
(
const TRangeBound& A, |
Returns the lesser of two upper bounds. | Math/RangeBound.h | |
static TRangeBound Open() |
Returns an open bound. | Math/RangeBound.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TRangeBound& Other |
Compares this range with the specified bound for inequality. | Math/RangeBound.h | |
bool operator==
(
const TRangeBound& Other |
Compares this bound with the specified bound for equality. | Math/RangeBound.h |