|
| | enum_data (flecs::world_t *world, _::enum_type< E > &impl) |
| | Construct enum_data from a world and an enum_type implementation.
|
| |
| bool | is_valid (U value) |
| | Check if a given integral value is a valid enum value.
|
| |
| bool | is_valid (E value) |
| | Check if a given enum value is valid.
|
| |
| int | index_by_value (U value) const |
| | Find the index into the constants array for a value, if one exists.
|
| |
| int | index_by_value (E value) const |
| | Find the index into the constants array for an enum value, if one exists.
|
| |
| int | first () const |
| | Return the index of the first constant.
|
| |
| int | last () const |
| | Return the index of the last constant.
|
| |
| int | next (int cur) const |
| | Return the next constant index after the given one.
|
| |
| flecs::entity | entity () const |
| | Get entity for the enum type.
|
| |
| flecs::entity | entity (U value) const |
| | Get entity for a given underlying enum value.
|
| |
| flecs::entity | entity (E value) const |
| | Get entity for a given enum value.
|
| |
template<typename E>
struct flecs::enum_data< E >
Convenience type with enum reflection data.
Enumeration type data wrapper with world pointer.
Definition at line 495 of file enum.hpp.