TEnumAsByte

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

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/EnumAsByte.h

Include

#include "Containers/EnumAsByte.h"

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()

Public function

TEnumAsByte

(
    const TEnumAsByte&
)

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 Const

TEnum

 

GetValue()

Gets the enumeration value.

Operators

Name Description

Public function Const

 

operator TEnum()

Implicit conversion to TEnum.

Public function

TEnumAsByte ...

 

operator=

(
    const TEnumAsByte&
)

Public function Const

bool

 

operator==

(
    TEnum InValue
)

Compares two enumeration values for equality.

Public function Const

bool

 

operator==

(
    TEnumAsByte InValue
)

Compares two enumeration values for equality.

Typedefs

Name

Description

Check

EnumType

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback