Template to store enumeration values as bytes in a type-safe way.
更多...
#include <EnumAsByte.h>
|
| 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]
Constructor, initialize to the enum value.
- 参数
-
| InValue | value to construct with. |
◆ TEnumAsByte() [2/3]
Constructor, initialize to the int32 value.
- 参数
-
| InValue | value to construct with. |
◆ TEnumAsByte() [3/3]
Constructor, initialize to the int32 value.
- 参数
-
| InValue | value to construct with. |
◆ GetValue()
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.
- 参数
-
| InValue | The value to compare with. |
- 返回
- true if the two values are equal, false otherwise.
◆ operator==() [2/2]
Compares two enumeration values for equality.
- 参数
-
| InValue | The value to compare with. |
- 返回
- true if the two values are equal, false otherwise.
该类的文档由以下文件生成: