Ark Server API (ASA) - Wiki
|
#include <EnumAsByte.h>
Public Types | |
typedef TEnum | EnumType |
Public Member Functions | |
TEnumAsByte ()=default | |
TEnumAsByte (const TEnumAsByte &)=default | |
TEnumAsByte & | operator= (const TEnumAsByte &)=default |
FORCEINLINE | TEnumAsByte (TEnum InValue) |
FORCEINLINE | TEnumAsByte (int32 InValue) |
FORCEINLINE | TEnumAsByte (uint8 InValue) |
bool | operator== (TEnum InValue) const |
bool | operator== (TEnumAsByte InValue) const |
operator TEnum () const | |
TEnum | GetValue () const |
uint8 | GetIntValue () const |
Private Types | |
typedef TEnumAsByte_EnumClass< TIsEnumClass< TEnum >::Value > | Check |
Private Attributes | |
uint8 | Value |
Template to store enumeration values as bytes in a type-safe way.
Definition at line 18 of file EnumAsByte.h.
|
private |
Definition at line 20 of file EnumAsByte.h.
Definition at line 23 of file EnumAsByte.h.
|
default |
|
default |
|
inline |
Constructor, initialize to the enum value.
InValue | value to construct with. |
Definition at line 34 of file EnumAsByte.h.
|
inlineexplicit |
Constructor, initialize to the int32 value.
InValue | value to construct with. |
Definition at line 43 of file EnumAsByte.h.
|
inlineexplicit |
Constructor, initialize to the int32 value.
InValue | value to construct with. |
Definition at line 52 of file EnumAsByte.h.
|
inline |
Gets the integer enumeration value.
Definition at line 102 of file EnumAsByte.h.
|
inline |
Gets the enumeration value.
Definition at line 92 of file EnumAsByte.h.
|
inline |
Implicit conversion to TEnum.
Definition at line 80 of file EnumAsByte.h.
|
default |
|
inline |
Compares two enumeration values for equality.
InValue | The value to compare with. |
Definition at line 63 of file EnumAsByte.h.
|
inline |
Compares two enumeration values for equality.
InValue | The value to compare with. |
Definition at line 74 of file EnumAsByte.h.
|
private |
Holds the value as a byte.
Definition at line 110 of file EnumAsByte.h.