![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EnumAsByte.h>
Public Types | |
| using | EnumType = InEnumType |
Public Member Functions | |
| constexpr | TEnumAsByte ()=default |
| constexpr | TEnumAsByte (const TEnumAsByte &)=default |
| constexpr TEnumAsByte & | operator= (const TEnumAsByte &)=default |
| UE_FORCEINLINE_HINT constexpr | TEnumAsByte (EnumType InValue) |
| UE_FORCEINLINE_HINT constexpr | TEnumAsByte (int32 InValue) |
| UE_FORCEINLINE_HINT constexpr | TEnumAsByte (uint8 InValue) |
| constexpr bool | operator== (EnumType InValue) const |
| constexpr bool | operator== (TEnumAsByte InValue) const |
| constexpr | operator EnumType () const |
| constexpr EnumType | GetValue () const |
| constexpr uint8 | GetIntValue () const |
Template to store enumeration values as bytes in a type-safe way. Blueprint enums should either be enum classes (preferred): enum class EMyEnum : uint8 { One, Two }, which doesn't require wrapping in this template or a namespaced enum namespace EMyEnum { enum Type // <- literally Type, not a placeholder { One, Two }; }
Traits classes and constants which test if a type is a TEnumAsByte.
| using TEnumAsByte< InEnumType >::EnumType = InEnumType |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
Constructor, initialize to the enum value.
| InValue | value to construct with. |
|
inlineexplicitconstexpr |
Constructor, initialize to the int32 value.
| InValue | value to construct with. |
|
inlineexplicitconstexpr |
Constructor, initialize to the uint8 value.
| InValue | value to construct with. |
|
inlineconstexpr |
Gets the integer enumeration value.
|
inlineconstexpr |
Gets the enumeration value.
|
inlineconstexpr |
Implicit conversion to EnumType.
|
constexprdefault |
|
inlineconstexpr |
Compares two enumeration values for equality.
| InValue | The value to compare with. |
|
inlineconstexpr |
Compares two enumeration values for equality.
| InValue | The value to compare with. |