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 for range bounds.
|
inline |
|
inline |
|
inlinestatic |
Returns a closed bound that excludes the specified value.
| Value | The bound value. |
|
inlinestatic |
Returns the given bound with its inclusion flipped between inclusive and exclusive.
If the bound is open it is returned unchanged.
|
inline |
Gets the bound's value.
Use IsClosed() to verify that this bound is closed before calling this method.
|
inlinestatic |
Returns a closed bound that includes the specified value.
| Value | The bound value. |
|
inline |
Checks whether the bound is closed.
|
inline |
Checks whether the bound is exclusive.
|
inline |
Checks whether the bound is inclusive.
|
inline |
Checks whether the bound is open.
|
inlinestatic |
Returns the greater of two lower bounds.
| A | The first lower bound. |
| B | The second lower bound. |
|
inlinestatic |
Returns the greater of two upper bounds.
| A | The first upper bound. |
| B | The second upper bound. |
|
inlinestatic |
Returns the lesser of two lower bounds.
| A | The first lower bound. |
| B | The second lower bound. |
|
inlinestatic |
Returns the lesser of two upper bounds.
| A | The first upper bound. |
| B | The second upper bound. |
|
inlinestatic |
Returns an open bound.
|
inline |
Compares this range with the specified bound for inequality.
| Other | The bound to compare with. |
|
inline |
Compares this bound with the specified bound for equality.
| Other | The bound to compare with. |
|
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.
| NewValue | New bound value. |
|
friend |
Gets the hash for the specified bound.
| Bound | The bound to get the hash for. |
|
friend |
Serializes the given bound from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Bound | The bound to serialize. |