Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Type safe interface for opaque types. More...
#include <opaque.hpp>
Public Member Functions | |
opaque (flecs::world_t *w=nullptr) | |
opaque & | as_type (flecs::id_t func) |
Type that describes the type kind/structure of the opaque type. | |
opaque & | serialize (flecs::serialize< T > func) |
Serialize function. | |
opaque & | assign_bool (void(*func)(T *dst, bool value)) |
Assign bool value. | |
opaque & | assign_char (void(*func)(T *dst, char value)) |
Assign char value. | |
opaque & | assign_int (void(*func)(T *dst, int64_t value)) |
Assign int value. | |
opaque & | assign_uint (void(*func)(T *dst, uint64_t value)) |
Assign unsigned int value. | |
opaque & | assign_float (void(*func)(T *dst, double value)) |
Assign float value. | |
opaque & | assign_string (void(*func)(T *dst, const char *value)) |
Assign string value. | |
opaque & | assign_entity (void(*func)(T *dst, ecs_world_t *world, ecs_entity_t entity)) |
Assign entity value. | |
opaque & | assign_id (void(*func)(T *dst, ecs_world_t *world, ecs_id_t id)) |
Assign (component) id value. | |
opaque & | assign_null (void(*func)(T *dst)) |
Assign null value. | |
opaque & | clear (void(*func)(T *dst)) |
Clear collection elements. | |
opaque & | ensure_element (ElemType *(*func)(T *dst, size_t elem)) |
Ensure & get collection element. | |
opaque & | ensure_member (void *(*func)(T *dst, const char *member)) |
Ensure & get element. | |
opaque & | count (size_t(*func)(const T *dst)) |
Return number of elements. | |
opaque & | resize (void(*func)(T *dst, size_t count)) |
Resize to number of elements. | |
Public Attributes | |
flecs::world_t * | world = nullptr |
Opaque type descriptor. | |
ecs_opaque_desc_t | desc = {} |
Type safe interface for opaque types.
Definition at line 32 of file opaque.hpp.
|
inline |
Definition at line 33 of file opaque.hpp.
|
inline |
Definition at line 169 of file opaque.hpp.
|
inline |
Type that describes the type kind/structure of the opaque type.
Definition at line 40 of file opaque.hpp.
|
inline |
Assign bool value.
Definition at line 54 of file opaque.hpp.
|
inline |
Assign char value.
Definition at line 62 of file opaque.hpp.
|
inline |
Assign entity value.
Definition at line 102 of file opaque.hpp.
|
inline |
Assign float value.
Definition at line 86 of file opaque.hpp.
|
inline |
Assign (component) id value.
Definition at line 112 of file opaque.hpp.
|
inline |
Assign int value.
Definition at line 70 of file opaque.hpp.
|
inline |
Assign null value.
Definition at line 122 of file opaque.hpp.
|
inline |
Assign string value.
Definition at line 94 of file opaque.hpp.
|
inline |
Assign unsigned int value.
Definition at line 78 of file opaque.hpp.
|
inline |
Clear collection elements.
Definition at line 130 of file opaque.hpp.
|
inline |
Return number of elements.
Definition at line 154 of file opaque.hpp.
|
inline |
Ensure & get collection element.
Definition at line 138 of file opaque.hpp.
|
inline |
Ensure & get element.
Definition at line 146 of file opaque.hpp.
|
inline |
Resize to number of elements.
Definition at line 162 of file opaque.hpp.
|
inline |
Serialize function.
Definition at line 46 of file opaque.hpp.
ecs_opaque_desc_t flecs::opaque< T, ElemType >::desc = {} |
Definition at line 177 of file opaque.hpp.
flecs::world_t* flecs::opaque< T, ElemType >::world = nullptr |
Opaque type descriptor.
Definition at line 176 of file opaque.hpp.