Compile-time enum reflection utilities. More...
#include <utility>Go to the source code of this file.
Classes | |
| struct | flecs::enum_last< E > |
| Trait to define the last valid enum value for reflection. More... | |
| struct | flecs::_::enum_constant< T > |
| Enumeration constant data. More... | |
| struct | flecs::enum_data< E > |
| Convenience type with enum reflection data. More... | |
Namespaces | |
| namespace | flecs::_ |
| Int to enum. | |
Macros | |
| #define | FLECS_ENUM_MAX(T) |
| #define | FLECS_ENUM_MAX_COUNT (FLECS_ENUM_MAX(int) + 1) |
| #define | FLECS_CPP_ENUM_REFLECTION_SUPPORT 1 |
| #define | flecs_enum_cast(T, v) |
| #define | FLECS_ENUM_LAST(T, Last) |
Functions | |
| template<size_t N> | |
| constexpr size_t | flecs::_::enum_template_arg_separator (const char(&func_name)[N], size_t pos, size_t end, size_t depth=0) |
| template<typename E, E C> | |
| constexpr bool | flecs::_::enum_constant_is_valid () |
| template<typename E> | |
| enum_data< E > | flecs::enum_type (flecs::world_t *world) |
| Convenience function for getting enum reflection data. | |
Variables | |
| template<typename E, underlying_type_t< E > Value> | |
| constexpr E | flecs::_::to_constant< E, Value >::value |
Compile-time enum reflection utilities.
Discover at compile time the valid enumeration constants for an enumeration type and their names. This is used to automatically register enum constants.
Definition in file enum.hpp.
| #define FLECS_ENUM_LAST | ( | T, | |
| Last ) |
| #define FLECS_ENUM_MAX | ( | T | ) |
| enum_data< E > flecs::enum_type | ( | flecs::world_t * | world | ) |