![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Int to enum. More...
Typedefs | |
| template<typename ... Components> | |
| using | alert_builder_base |
| template<typename Func > | |
| using | event_from_func_t = typename event_from_func<Func>::type |
| template<typename ... Components> | |
| using | observer_builder_base |
| template<typename ... Components> | |
| using | pipeline_builder_base |
| template<typename ... Components> | |
| using | query_builder_base |
| template<typename ... Components> | |
| using | system_builder_base |
Functions | |
| template<typename T > | |
| const char * | component_symbol_name () |
| template<> | |
| const char * | component_symbol_name< uint8_t > () |
| template<> | |
| const char * | component_symbol_name< uint16_t > () |
| template<> | |
| const char * | component_symbol_name< uint32_t > () |
| template<> | |
| const char * | component_symbol_name< uint64_t > () |
| template<> | |
| const char * | component_symbol_name< int8_t > () |
| template<> | |
| const char * | component_symbol_name< int16_t > () |
| template<> | |
| const char * | component_symbol_name< int32_t > () |
| template<> | |
| const char * | component_symbol_name< int64_t > () |
| template<> | |
| const char * | component_symbol_name< float > () |
| template<> | |
| const char * | component_symbol_name< double > () |
| template<typename T > | |
| void | register_lifecycle_actions (ecs_world_t *world, ecs_entity_t component) |
| template<typename T > | |
| ecs_cpp_type_action_t | lifecycle_action () |
| template<typename T > | |
| ecs_cpp_type_action_t | enum_action () |
| template<typename T > | |
| void | ctor_impl (void *ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | dtor_impl (void *ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | copy_impl (void *dst_ptr, const void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | move_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | copy_ctor_impl (void *dst_ptr, const void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | move_ctor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| void | ctor_move_dtor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T , if_not_t< std::is_trivially_move_assignable< T >::value > = 0> | |
| void | move_dtor_impl (void *dst_ptr, void *src_ptr, int32_t count, const ecs_type_info_t *info) |
| template<typename T > | |
| ecs_xtor_t | ctor (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_xtor_t | dtor (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_copy_t | copy (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_move_t | move (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_copy_t | copy_ctor (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_move_t | move_ctor (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_move_t | ctor_move_dtor (ecs_flags32_t &flags) |
| template<typename T > | |
| ecs_move_t | move_dtor (ecs_flags32_t &flags) |
| template<typename T > | |
| int | compare_impl (const void *a, const void *b, const ecs_type_info_t *) |
| template<typename T > | |
| ecs_cmp_t | compare () |
| template<typename T > | |
| bool | equals_impl (const void *a, const void *b, const ecs_type_info_t *) |
| template<typename T > | |
| ecs_equals_t | equals () |
| void | entity_observer_create (flecs::world_t *world, flecs::entity_t event, flecs::entity_t entity, ecs_iter_action_t callback, void *callback_ctx, ecs_ctx_free_t callback_ctx_free) |
| template<typename T > | |
| ecs_entity_t | do_import (world &world, const char *symbol) |
| template<typename T > | |
| flecs::entity | import (world &world) |
| ecs_value_t | get_const_var (const flecs::world_t *world, const char *name) |
| template<typename T > | |
| T | get_const_value (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const T &default_value) |
| template<> | |
| char | get_const_value< char > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const char &default_value) |
| template<> | |
| int8_t | get_const_value< int8_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const int8_t &default_value) |
| template<> | |
| int16_t | get_const_value< int16_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const int16_t &default_value) |
| template<> | |
| int32_t | get_const_value< int32_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const int32_t &default_value) |
| template<> | |
| int64_t | get_const_value< int64_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const int64_t &default_value) |
| template<> | |
| uint8_t | get_const_value< uint8_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const uint8_t &default_value) |
| template<> | |
| uint16_t | get_const_value< uint16_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const uint16_t &default_value) |
| template<> | |
| uint32_t | get_const_value< uint32_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const uint32_t &default_value) |
| template<> | |
| uint64_t | get_const_value< uint64_t > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const uint64_t &default_value) |
| template<> | |
| float | get_const_value< float > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const float &default_value) |
| template<> | |
| double | get_const_value< double > (flecs::world_t *world, const char *name, ecs_value_t value, ecs_entity_t type, const double &default_value) |
| void | system_init (flecs::world &world) |
| void | timer_init (flecs::world &world) |
| template<size_t N> | |
| constexpr size_t | enum_template_arg_separator (const char(&func_name)[N], size_t pos, size_t end, size_t depth=0) |
| Test if a value is valid for an enumeration. | |
| template<typename E , E C> | |
| constexpr bool | enum_constant_is_valid () |
| template<typename T , if_t< is_const_p< T >::value > = 0> | |
| constexpr flecs::inout_kind_t | type_to_inout () |
| template<typename T , if_t< is_pointer< T >::value > = 0> | |
| constexpr flecs::oper_kind_t | type_to_oper () |
Int to enum.
| using flecs::_::alert_builder_base |
Definition at line 14 of file builder.hpp.
| using flecs::_::event_from_func_t = typename event_from_func<Func>::type |
| using flecs::_::observer_builder_base |
Definition at line 14 of file builder.hpp.
| using flecs::_::pipeline_builder_base |
Definition at line 14 of file builder.hpp.
| using flecs::_::query_builder_base |
Definition at line 14 of file builder.hpp.
| using flecs::_::system_builder_base |
Definition at line 15 of file builder.hpp.
| ecs_cmp_t flecs::_::compare | ( | ) |
Definition at line 342 of file lifecycle_traits.hpp.
| int flecs::_::compare_impl | ( | const void * | a, |
| const void * | b, | ||
| const ecs_type_info_t * | ) |
Definition at line 304 of file lifecycle_traits.hpp.
|
inline |
Definition at line 21 of file component.hpp.
|
inline |
Definition at line 52 of file component.hpp.
|
inline |
Definition at line 49 of file component.hpp.
|
inline |
Definition at line 40 of file component.hpp.
|
inline |
Definition at line 43 of file component.hpp.
|
inline |
Definition at line 46 of file component.hpp.
|
inline |
Definition at line 37 of file component.hpp.
|
inline |
Definition at line 28 of file component.hpp.
|
inline |
Definition at line 31 of file component.hpp.
|
inline |
Definition at line 34 of file component.hpp.
|
inline |
Definition at line 25 of file component.hpp.
| ecs_copy_t flecs::_::copy | ( | ecs_flags32_t & | flags | ) |
Definition at line 190 of file lifecycle_traits.hpp.
| ecs_copy_t flecs::_::copy_ctor | ( | ecs_flags32_t & | flags | ) |
Definition at line 214 of file lifecycle_traits.hpp.
| void flecs::_::copy_ctor_impl | ( | void * | dst_ptr, |
| const void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 67 of file lifecycle_traits.hpp.
| void flecs::_::copy_impl | ( | void * | dst_ptr, |
| const void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 39 of file lifecycle_traits.hpp.
| ecs_xtor_t flecs::_::ctor | ( | ecs_flags32_t & | flags | ) |
Definition at line 164 of file lifecycle_traits.hpp.
| void flecs::_::ctor_impl | ( | void * | ptr, |
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 17 of file lifecycle_traits.hpp.
| ecs_move_t flecs::_::ctor_move_dtor | ( | ecs_flags32_t & | flags | ) |
Definition at line 238 of file lifecycle_traits.hpp.
| void flecs::_::ctor_move_dtor_impl | ( | void * | dst_ptr, |
| void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 96 of file lifecycle_traits.hpp.
| ecs_entity_t flecs::_::do_import | ( | world & | world, |
| const char * | symbol ) |
| ecs_xtor_t flecs::_::dtor | ( | ecs_flags32_t & | flags | ) |
Definition at line 176 of file lifecycle_traits.hpp.
| void flecs::_::dtor_impl | ( | void * | ptr, |
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 28 of file lifecycle_traits.hpp.
|
inline |
|
inline |
Definition at line 101 of file component.hpp.
|
constexpr |
|
constexpr |
Test if a value is valid for an enumeration.
This function leverages that when a valid value is provided, the compiler's function name string (ECS_FUNC_NAME) contains the enumeration constant name, whereas if a value is invalid, the string contains a cast expression or numeric representation.
| ecs_equals_t flecs::_::equals | ( | ) |
Definition at line 359 of file lifecycle_traits.hpp.
| bool flecs::_::equals_impl | ( | const void * | a, |
| const void * | b, | ||
| const ecs_type_info_t * | ) |
Definition at line 352 of file lifecycle_traits.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| flecs::entity flecs::_::import | ( | world & | world | ) |
|
inline |
Definition at line 92 of file component.hpp.
| ecs_move_t flecs::_::move | ( | ecs_flags32_t & | flags | ) |
Definition at line 202 of file lifecycle_traits.hpp.
| ecs_move_t flecs::_::move_ctor | ( | ecs_flags32_t & | flags | ) |
Definition at line 226 of file lifecycle_traits.hpp.
| void flecs::_::move_ctor_impl | ( | void * | dst_ptr, |
| void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 81 of file lifecycle_traits.hpp.
| ecs_move_t flecs::_::move_dtor | ( | ecs_flags32_t & | flags | ) |
Definition at line 250 of file lifecycle_traits.hpp.
| void flecs::_::move_dtor_impl | ( | void * | dst_ptr, |
| void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 113 of file lifecycle_traits.hpp.
| void flecs::_::move_impl | ( | void * | dst_ptr, |
| void * | src_ptr, | ||
| int32_t | count, | ||
| const ecs_type_info_t * | info ) |
Definition at line 53 of file lifecycle_traits.hpp.
| void flecs::_::register_lifecycle_actions | ( | ecs_world_t * | world, |
| ecs_entity_t | component ) |
Definition at line 61 of file component.hpp.
|
inline |
|
constexpr |
Definition at line 12 of file signature.hpp.
|
constexpr |
Definition at line 28 of file signature.hpp.