TRangeBound

Template for range bounds.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

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

Include

#include "Math/RangeBound.h"

Syntax

template<typename ElementType>
class TRangeBound

Remarks

Template for range bounds.

Constructors

Name Description

Public function

TRangeBound()

Default constructor.

Public function

TRangeBound

(
    ElementValueOrConstRef InValue
)

Creates a closed bound that includes the specified value.

Functions

Name Description

Public function Static

TRangeBound

 

Exclusive

(
    ElementValueOrConstRef Value
)

Returns a closed bound that excludes the specified value.

Public function Static

TRangeBound

 

FlipInclusion

(
    const TRangeBound& Bound
)

Returns the given bound with its inclusion flipped between inclusive and exclusive.

Public function Const

ElementValue...

 

GetValue()

Gets the bound's value.

Public function Static

TRangeBound

 

Inclusive

(
    ElementValueOrConstRef Value
)

Returns a closed bound that includes the specified value.

Public function Const

bool

 

IsClosed()

Checks whether the bound is closed.

Public function Const

bool

 

IsExclusive()

Checks whether the bound is exclusive.

Public function Const

bool

 

IsInclusive()

Checks whether the bound is inclusive.

Public function Const

bool

 

IsOpen()

Checks whether the bound is open.

Public function Static

const TRange...

 

MaxLower

(
    const TRangeBound& A,
    const TRangeBound& B
)

Returns the greater of two lower bounds.

Public function Static

const TRange...

 

MaxUpper

(
    const TRangeBound& A,
    const TRangeBound& B
)

Returns the greater of two upper bounds.

Public function Static

const TRange...

 

MinLower

(
    const TRangeBound& A,
    const TRangeBound& B
)

Returns the lesser of two lower bounds.

Public function Static

const TRange...

 

MinUpper

(
    const TRangeBound& A,
    const TRangeBound& B
)

Returns the lesser of two upper bounds.

Public function Static

TRangeBound

 

Open()

Returns an open bound.

Public function

void

 

SetValue

(
    ElementValueOrConstRef NewValue
)

Sets the bound's value, maintining the inclusivity of the bound

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TRangeBound& Other
)

Compares this range with the specified bound for inequality.

Public function Const

bool

 

operator==

(
    const TRangeBound& Other
)

Compares this bound with the specified bound for equality.

Typedefs

Name

Description

ElementValueOrConstRef

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