Ark Server API (ASE) - Wiki
|
#include <EnumAsByte.h>
Public Types | |
typedef TEnum | EnumType |
Public Member Functions | |
FORCEINLINE | TEnumAsByte () |
FORCEINLINE | TEnumAsByte (const TEnumAsByte &InValue) |
FORCEINLINE | TEnumAsByte (TEnum InValue) |
FORCEINLINE | TEnumAsByte (int32 InValue) |
FORCEINLINE | TEnumAsByte (uint8 InValue) |
FORCEINLINE TEnumAsByte & | operator= (TEnumAsByte InValue) |
FORCEINLINE TEnumAsByte & | operator= (TEnum InValue) |
bool | operator== (TEnum InValue) const |
bool | operator== (TEnumAsByte InValue) const |
operator TEnum () const | |
TEnum | GetValue () const |
Private Types | |
typedef TEnumAsByte_EnumClass< TIsEnumClass< TEnum >::Value > | Check |
Private Attributes | |
uint8 | Value |
Friends | |
FORCEINLINE friend uint32 | GetTypeHash (const TEnumAsByte &Enum) |
Template to store enumeration values as bytes in a type-safe way.
Definition at line 16 of file EnumAsByte.h.
|
private |
Definition at line 18 of file EnumAsByte.h.
Definition at line 21 of file EnumAsByte.h.
|
inline |
Default Constructor (no initialization).
Definition at line 24 of file EnumAsByte.h.
|
inline |
Copy constructor.
InValue | value to construct with. |
Definition at line 31 of file EnumAsByte.h.
|
inline |
Constructor, initialize to the enum value.
InValue | value to construct with. |
Definition at line 40 of file EnumAsByte.h.
|
inlineexplicit |
Constructor, initialize to the int32 value.
InValue | value to construct with. |
Definition at line 49 of file EnumAsByte.h.
|
inlineexplicit |
Constructor, initialize to the int32 value.
InValue | value to construct with. |
Definition at line 58 of file EnumAsByte.h.
|
inline |
Gets the enumeration value.
Definition at line 122 of file EnumAsByte.h.
|
inline |
Implicit conversion to TEnum.
Definition at line 110 of file EnumAsByte.h.
|
inline |
Assignment operator.
InValue | value to set. |
Definition at line 81 of file EnumAsByte.h.
|
inline |
Assignment operator.
InValue | value to set. |
Definition at line 70 of file EnumAsByte.h.
|
inline |
Compares two enumeration values for equality.
InValue | The value to compare with. |
Definition at line 93 of file EnumAsByte.h.
|
inline |
Compares two enumeration values for equality.
InValue | The value to compare with. |
Definition at line 104 of file EnumAsByte.h.
|
friend |
Definition at line 133 of file EnumAsByte.h.
|
private |
Holds the value as a byte.
Definition at line 130 of file EnumAsByte.h.