Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Convenience type with enum reflection data. More...
#include <enum.hpp>
Public Types | |
using | U = underlying_type_t<E> |
Public Member Functions | |
enum_data (flecs::world_t *world, _::enum_data_impl< E > &impl) | |
bool | is_valid (U value) |
Checks if a given integral value is a valid enum value. | |
bool | is_valid (E value) |
Checks if a given enum value is valid. | |
int | index_by_value (U value) const |
Finds the index into the constants array for a value, if one exists. | |
int | index_by_value (E value) const |
Finds the index into the constants array for an enum value, if one exists. | |
int | first () const |
int | last () const |
int | next (int cur) const |
flecs::entity | entity () const |
flecs::entity | entity (U value) const |
flecs::entity | entity (E value) const |
Public Attributes | |
flecs::world_t * | world_ |
_::enum_data_impl< E > & | impl_ |
Convenience type with enum reflection data.
Enumeration type data wrapper with world pointer.
using flecs::enum_data< E >::U = underlying_type_t<E> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
_::enum_data_impl<E>& flecs::enum_data< E >::impl_ |
flecs::world_t* flecs::enum_data< E >::world_ |