engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TEnumAsByte< TEnum > 模板类 参考

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

#include <EnumAsByte.h>

Public 成员函数

TEnum GetValue () const
 Gets the enumeration value. 更多...
 
 operator TEnum () const
 Implicit conversion to TEnum.
 
bool operator== (TEnum InValue) const
 Compares two enumeration values for equality. 更多...
 
bool operator== (TEnumAsByte InValue) const
 Compares two enumeration values for equality. 更多...
 
FORCEINLINE TEnumAsByte (int32 InValue)
 Constructor, initialize to the int32 value. 更多...
 
FORCEINLINE TEnumAsByte (TEnum InValue)
 Constructor, initialize to the enum value. 更多...
 
FORCEINLINE TEnumAsByte (uint8 InValue)
 Constructor, initialize to the int32 value. 更多...
 

详细描述

template<class TEnum>
class TEnumAsByte< TEnum >

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

示例
/github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

构造及析构函数说明

◆ TEnumAsByte() [1/3]

template<class TEnum >
FORCEINLINE TEnumAsByte< TEnum >::TEnumAsByte ( TEnum  InValue)
inline

Constructor, initialize to the enum value.

参数
InValuevalue to construct with.

◆ TEnumAsByte() [2/3]

template<class TEnum >
FORCEINLINE TEnumAsByte< TEnum >::TEnumAsByte ( int32  InValue)
inlineexplicit

Constructor, initialize to the int32 value.

参数
InValuevalue to construct with.

◆ TEnumAsByte() [3/3]

template<class TEnum >
FORCEINLINE TEnumAsByte< TEnum >::TEnumAsByte ( uint8  InValue)
inlineexplicit

Constructor, initialize to the int32 value.

参数
InValuevalue to construct with.

成员函数说明

◆ GetValue()

template<class TEnum >
TEnum TEnumAsByte< TEnum >::GetValue ( ) const
inline

Gets the enumeration value.

返回
The enumeration value.

◆ operator==() [1/2]

template<class TEnum >
bool TEnumAsByte< TEnum >::operator== ( TEnum  InValue) const
inline

Compares two enumeration values for equality.

参数
InValueThe value to compare with.
返回
true if the two values are equal, false otherwise.

◆ operator==() [2/2]

template<class TEnum >
bool TEnumAsByte< TEnum >::operator== ( TEnumAsByte< TEnum >  InValue) const
inline

Compares two enumeration values for equality.

参数
InValueThe value to compare with.
返回
true if the two values are equal, false otherwise.

该类的文档由以下文件生成: