![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Go to the source code of this file.
Macros | |
| #define | ENUM_CLASS_FLAGS(Enum) |
| #define | FRIEND_ENUM_CLASS_FLAGS(Enum) |
Functions | |
| template<typename Enum > | |
| constexpr bool | EnumHasAllFlags (Enum Flags, Enum Contains) |
| template<typename Enum > | |
| constexpr bool | EnumHasAnyFlags (Enum Flags, Enum Contains) |
| template<typename Enum > | |
| constexpr bool | EnumOnlyContainsFlags (Enum Flags, Enum Contains) |
| template<typename Enum > | |
| constexpr bool | EnumHasOneFlag (Enum Flags) |
| template<typename Enum > | |
| constexpr bool | EnumHasAnyOneFlag (Enum Flags, Enum OneOfFlags) |
| template<typename Enum > | |
| constexpr void | EnumAddFlags (Enum &Flags, Enum FlagsToAdd) |
| template<typename Enum > | |
| constexpr void | EnumRemoveFlags (Enum &Flags, Enum FlagsToRemove) |
| template<typename Enum > | |
| constexpr Enum | EnumLowestSetFlag (Enum Flags) |
| template<typename Enum > | |
| constexpr Enum | EnumRemoveLowestSetFlag (Enum Flags) |
| template<typename Enum > | |
| constexpr int | EnumNumSetFlags (Enum Flags) |
Check if Flags has one and only one of the flags specified in OneOfFlags set
| Flags | The value to check. |
| OneOfFlags | The flags to check the value for. |
Check if Flags has one and only one flag set. This can also be thought of as a check for a power-of-2 value.
| Flags | The value to check. |
Check if the Flags value contains only the flags specified by the Contains argument. It is not required that any of the flags in Contains be set in Flags and Flags may be any combination of the flags specified by Contains (including k=0). But if Flags contains any flag not in Contains, this function will return false. This function may also be understood as !EnumContainsAnyFlags(Flags, ~Contains).
| Flags | The value to check. |
| Contains | The flags to check the value against. |