TEnumAsByte

Syntax

template<class TEnum>
class TEnumAsByte

Remarks

Template to store enumeration values as bytes in a type-safe way.

Constructors

Name Description

Public function

TEnumAsByte()

Default Constructor (no initialization).

Public function

TEnumAsByte

(
    const TEnumAsByte & InValue
)

Copy constructor.

Public function

TEnumAsByte

(
    TEnum InValue
)

Constructor, initialize to the enum value.

Public function

TEnumAsByte

(
    int32 InValue
)

Constructor, initialize to the int32 value.

Public function

TEnumAsByte

(
    uint8 InValue
)

Constructor, initialize to the int32 value.

Functions

Name Description

Public function

TEnum

 

GetValue()

Gets the enumeration value.

The enumeration value.

Operators

Name Description

Public function

 

operator TEnum()

Implicit conversion to TEnum.

Public function

TEnumAsByte ...

 

operator=

(
    TEnumAsByte InValue
)

Assignment operator.

This instance.

Public function

TEnumAsByte ...

 

operator=

(
    TEnum InValue
)

Assignment operator.

This instance.

Public function

bool

 

operator==

(
    TEnum InValue
)

Compares two enumeration values for equality.

true if the two values are equal, false otherwise.

Public function

bool

 

operator==

(
    TEnumAsByte InValue
)

Compares two enumeration values for equality.

true if the two values are equal, false otherwise.

Typedefs

Name

Description

EnumType

References

Module

Core

Header

Runtime/Core/Public/Containers/EnumAsByte.h