![]() |
Ark Server API (ASA) - Wiki
|
#include <RangeBound.h>
Collaboration diagram for TRangeBound< ElementType >:Public Types | |
| typedef TCallTraits< ElementType >::ParamType | ElementValueOrConstRef |
Static Public Member Functions | |
| static FORCEINLINE TRangeBound | Exclusive (ElementValueOrConstRef Value) |
| static FORCEINLINE TRangeBound | Inclusive (ElementValueOrConstRef Value) |
| static FORCEINLINE TRangeBound | Open () |
| static FORCEINLINE TRangeBound | FlipInclusion (const TRangeBound &Bound) |
| static FORCEINLINE const TRangeBound & | MaxLower (const TRangeBound &A, const TRangeBound &B) |
| static FORCEINLINE const TRangeBound & | MaxUpper (const TRangeBound &A, const TRangeBound &B) |
| static FORCEINLINE const TRangeBound & | MinLower (const TRangeBound &A, const TRangeBound &B) |
| static FORCEINLINE const TRangeBound & | MinUpper (const TRangeBound &A, const TRangeBound &B) |
Private Attributes | |
| TEnumAsByte< ERangeBoundTypes::Type > | Type |
| ElementType | Value |
Friends | |
| class FArchive & | operator<< (class FArchive &Ar, TRangeBound &Bound) |
| uint32 | GetTypeHash (const TRangeBound &Bound) |
Template for range bounds.
Definition at line 35 of file RangeBound.h.
| typedef TCallTraits<ElementType>::ParamType TRangeBound< ElementType >::ElementValueOrConstRef |
Definition at line 40 of file RangeBound.h.
|
inline |
|
inline |
Creates a closed bound that includes the specified value.
| InValue | The bound's value. |
Definition at line 58 of file RangeBound.h.
|
inlinestatic |
Returns a closed bound that excludes the specified value.
| Value | The bound value. |
Definition at line 193 of file RangeBound.h.
|
inlinestatic |
Returns the given bound with its inclusion flipped between inclusive and exclusive.
If the bound is open it is returned unchanged.
Definition at line 242 of file RangeBound.h.
|
inline |
Gets the bound's value.
Use IsClosed() to verify that this bound is closed before calling this method.
Definition at line 97 of file RangeBound.h.
|
inlinestatic |
Returns a closed bound that includes the specified value.
| Value | The bound value. |
Definition at line 209 of file RangeBound.h.
|
inline |
Checks whether the bound is closed.
Definition at line 125 of file RangeBound.h.
|
inline |
Checks whether the bound is exclusive.
Definition at line 135 of file RangeBound.h.
|
inline |
Checks whether the bound is inclusive.
Definition at line 145 of file RangeBound.h.
|
inline |
Checks whether the bound is open.
Definition at line 155 of file RangeBound.h.
|
inlinestatic |
Returns the greater of two lower bounds.
| A | The first lower bound. |
| B | The second lower bound. |
Definition at line 264 of file RangeBound.h.
|
inlinestatic |
Returns the greater of two upper bounds.
| A | The first upper bound. |
| B | The second upper bound. |
Definition at line 282 of file RangeBound.h.
|
inlinestatic |
Returns the lesser of two lower bounds.
| A | The first lower bound. |
| B | The second lower bound. |
Definition at line 300 of file RangeBound.h.
|
inlinestatic |
Returns the lesser of two upper bounds.
| A | The first upper bound. |
| B | The second upper bound. |
Definition at line 318 of file RangeBound.h.
|
inlinestatic |
|
inline |
Compares this range with the specified bound for inequality.
| Other | The bound to compare with. |
Definition at line 82 of file RangeBound.h.
|
inline |
Compares this bound with the specified bound for equality.
| Other | The bound to compare with. |
Definition at line 71 of file RangeBound.h.
|
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. |
Definition at line 113 of file RangeBound.h.
|
friend |
Gets the hash for the specified bound.
| Bound | The bound to get the hash for. |
Definition at line 180 of file RangeBound.h.
|
friend |
Serializes the given bound from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Bound | The bound to serialize. |
Definition at line 169 of file RangeBound.h.
|
private |
Holds the type of the bound.
Definition at line 332 of file RangeBound.h.
|
private |
Holds the bound's value.
Definition at line 335 of file RangeBound.h.