engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
TRangeBound< ElementType > 模板类 参考

Template for range bounds. 更多...

#include <RangeBound.h>

Public 成员函数

FORCEINLINE_DEBUGGABLE ElementValueOrConstRef GetValue () const
 Gets the bound's value. 更多...
 
FORCEINLINE_DEBUGGABLE bool IsClosed () const
 Checks whether the bound is closed. 更多...
 
FORCEINLINE_DEBUGGABLE bool IsExclusive () const
 Checks whether the bound is exclusive. 更多...
 
FORCEINLINE_DEBUGGABLE bool IsInclusive () const
 Checks whether the bound is inclusive. 更多...
 
FORCEINLINE_DEBUGGABLE bool IsOpen () const
 Checks whether the bound is open. 更多...
 
bool operator!= (const TRangeBound &Other) const
 Compares this range with the specified bound for inequality. 更多...
 
bool operator== (const TRangeBound &Other) const
 Compares this bound with the specified bound for equality. 更多...
 
FORCEINLINE_DEBUGGABLE void SetValue (ElementValueOrConstRef NewValue)
 Sets the bound's value, maintining the inclusivity of the bound 更多...
 
 TRangeBound ()
 Default constructor. 更多...
 
 TRangeBound (ElementValueOrConstRef InValue)
 Creates a closed bound that includes the specified value. 更多...
 

静态 Public 成员函数

static FORCEINLINE TRangeBound Exclusive (ElementValueOrConstRef Value)
 Returns a closed bound that excludes the specified value. 更多...
 
static FORCEINLINE TRangeBound FlipInclusion (const TRangeBound &Bound)
 Returns the given bound with its inclusion flipped between inclusive and exclusive. 更多...
 
static FORCEINLINE TRangeBound Inclusive (ElementValueOrConstRef Value)
 Returns a closed bound that includes the specified value. 更多...
 
static FORCEINLINE const TRangeBound & MaxLower (const TRangeBound &A, const TRangeBound &B)
 Returns the greater of two lower bounds. 更多...
 
static FORCEINLINE const TRangeBound & MaxUpper (const TRangeBound &A, const TRangeBound &B)
 Returns the greater of two upper bounds. 更多...
 
static FORCEINLINE const TRangeBound & MinLower (const TRangeBound &A, const TRangeBound &B)
 Returns the lesser of two lower bounds. 更多...
 
static FORCEINLINE const TRangeBound & MinUpper (const TRangeBound &A, const TRangeBound &B)
 Returns the lesser of two upper bounds. 更多...
 
static FORCEINLINE TRangeBound Open ()
 Returns an open bound. 更多...
 

友元

uint32 GetTypeHash (const TRangeBound &Bound)
 Gets the hash for the specified bound. 更多...
 
class FArchive & operator<< (class FArchive &Ar, TRangeBound &Bound)
 Serializes the given bound from or into the specified archive. 更多...
 

详细描述

template<typename ElementType>
class TRangeBound< ElementType >

Template for range bounds.

构造及析构函数说明

◆ TRangeBound() [1/2]

template<typename ElementType >
TRangeBound< ElementType >::TRangeBound ( )
inline

Default constructor.

参见
Exclusive, Inclusive, Open

◆ TRangeBound() [2/2]

template<typename ElementType >
TRangeBound< ElementType >::TRangeBound ( ElementValueOrConstRef  InValue)
inline

Creates a closed bound that includes the specified value.

参数
InValueThe bound's value.
参见
Exclusive, Inclusive, Open

成员函数说明

◆ Exclusive()

template<typename ElementType >
static FORCEINLINE TRangeBound TRangeBound< ElementType >::Exclusive ( ElementValueOrConstRef  Value)
inlinestatic

Returns a closed bound that excludes the specified value.

参数
ValueThe bound value.
返回
An exclusive closed bound.

◆ FlipInclusion()

template<typename ElementType >
static FORCEINLINE TRangeBound TRangeBound< ElementType >::FlipInclusion ( const TRangeBound< ElementType > &  Bound)
inlinestatic

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

If the bound is open it is returned unchanged.

返回
A new bound.

◆ GetValue()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE ElementValueOrConstRef TRangeBound< ElementType >::GetValue ( ) const
inline

Gets the bound's value.

Use IsClosed() to verify that this bound is closed before calling this method.

返回
Bound value.
参见
IsOpen

◆ Inclusive()

template<typename ElementType >
static FORCEINLINE TRangeBound TRangeBound< ElementType >::Inclusive ( ElementValueOrConstRef  Value)
inlinestatic

Returns a closed bound that includes the specified value.

参数
ValueThe bound value.
返回
An inclusive closed bound.

◆ IsClosed()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE bool TRangeBound< ElementType >::IsClosed ( ) const
inline

Checks whether the bound is closed.

返回
true if the bound is closed, false otherwise.

◆ IsExclusive()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE bool TRangeBound< ElementType >::IsExclusive ( ) const
inline

Checks whether the bound is exclusive.

返回
true if the bound is exclusive, false otherwise.

◆ IsInclusive()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE bool TRangeBound< ElementType >::IsInclusive ( ) const
inline

Checks whether the bound is inclusive.

返回
true if the bound is inclusive, false otherwise.

◆ IsOpen()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE bool TRangeBound< ElementType >::IsOpen ( ) const
inline

Checks whether the bound is open.

返回
true if the bound is open, false otherwise.

◆ MaxLower()

template<typename ElementType >
static FORCEINLINE const TRangeBound & TRangeBound< ElementType >::MaxLower ( const TRangeBound< ElementType > &  A,
const TRangeBound< ElementType > &  B 
)
inlinestatic

Returns the greater of two lower bounds.

参数
AThe first lower bound.
BThe second lower bound.
返回
The greater lower bound.

◆ MaxUpper()

template<typename ElementType >
static FORCEINLINE const TRangeBound & TRangeBound< ElementType >::MaxUpper ( const TRangeBound< ElementType > &  A,
const TRangeBound< ElementType > &  B 
)
inlinestatic

Returns the greater of two upper bounds.

参数
AThe first upper bound.
BThe second upper bound.
返回
The greater upper bound.

◆ MinLower()

template<typename ElementType >
static FORCEINLINE const TRangeBound & TRangeBound< ElementType >::MinLower ( const TRangeBound< ElementType > &  A,
const TRangeBound< ElementType > &  B 
)
inlinestatic

Returns the lesser of two lower bounds.

参数
AThe first lower bound.
BThe second lower bound.
返回
The lesser lower bound.

◆ MinUpper()

template<typename ElementType >
static FORCEINLINE const TRangeBound & TRangeBound< ElementType >::MinUpper ( const TRangeBound< ElementType > &  A,
const TRangeBound< ElementType > &  B 
)
inlinestatic

Returns the lesser of two upper bounds.

参数
AThe first upper bound.
BThe second upper bound.
返回
The lesser upper bound.

◆ Open()

template<typename ElementType >
static FORCEINLINE TRangeBound TRangeBound< ElementType >::Open ( )
inlinestatic

Returns an open bound.

返回
An open bound.

◆ operator!=()

template<typename ElementType >
bool TRangeBound< ElementType >::operator!= ( const TRangeBound< ElementType > &  Other) const
inline

Compares this range with the specified bound for inequality.

参数
OtherThe bound to compare with.
返回
true if the bounds are not equal, false otherwise.

◆ operator==()

template<typename ElementType >
bool TRangeBound< ElementType >::operator== ( const TRangeBound< ElementType > &  Other) const
inline

Compares this bound with the specified bound for equality.

参数
OtherThe bound to compare with.
返回
true if the bounds are equal, false otherwise.

◆ SetValue()

template<typename ElementType >
FORCEINLINE_DEBUGGABLE void TRangeBound< ElementType >::SetValue ( ElementValueOrConstRef  NewValue)
inline

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

Use IsClosed() to verify that this bound is closed before calling this method.

参数
NewValueNew bound value.
参见
IsClosed

友元及相关函数文档

◆ GetTypeHash

template<typename ElementType >
uint32 GetTypeHash ( const TRangeBound< ElementType > &  Bound)
friend

Gets the hash for the specified bound.

参数
BoundThe bound to get the hash for.
返回
Hash value.

◆ operator<<

template<typename ElementType >
class FArchive & operator<< ( class FArchive &  Ar,
TRangeBound< ElementType > &  Bound 
)
friend

Serializes the given bound from or into the specified archive.

参数
ArThe archive to serialize from or into.
BoundThe bound to serialize.
返回
The archive.

该类的文档由以下文件生成: