![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Construct, destruct, copy, and move dynamically created values. More...
Functions | |
| int | ecs_value_init (const ecs_world_t *world, ecs_entity_t type, void *ptr) |
| Construct a value in existing storage. | |
| int | ecs_value_init_w_type_info (const ecs_world_t *world, const ecs_type_info_t *ti, void *ptr) |
| Construct a value in existing storage. | |
| void * | ecs_value_new (ecs_world_t *world, ecs_entity_t type) |
| Construct a value in new storage. | |
| void * | ecs_value_new_w_type_info (ecs_world_t *world, const ecs_type_info_t *ti) |
| Construct a value in new storage. | |
| int | ecs_value_fini_w_type_info (const ecs_world_t *world, const ecs_type_info_t *ti, void *ptr) |
| Destruct a value. | |
| int | ecs_value_fini (const ecs_world_t *world, ecs_entity_t type, void *ptr) |
| Destruct a value. | |
| int | ecs_value_free (ecs_world_t *world, ecs_entity_t type, void *ptr) |
| Destruct a value and free storage. | |
| int | ecs_value_copy_w_type_info (const ecs_world_t *world, const ecs_type_info_t *ti, void *dst, const void *src) |
| Copy a value. | |
| int | ecs_value_copy (const ecs_world_t *world, ecs_entity_t type, void *dst, const void *src) |
| Copy a value. | |
| int | ecs_value_move_w_type_info (const ecs_world_t *world, const ecs_type_info_t *ti, void *dst, void *src) |
| Move a value. | |
| int | ecs_value_move (const ecs_world_t *world, ecs_entity_t type, void *dst, void *src) |
| Move a value. | |
| int | ecs_value_move_ctor_w_type_info (const ecs_world_t *world, const ecs_type_info_t *ti, void *dst, void *src) |
| Move-construct a value. | |
| int | ecs_value_move_ctor (const ecs_world_t *world, ecs_entity_t type, void *dst, void *src) |
| Move-construct a value. | |
Construct, destruct, copy, and move dynamically created values.
| int ecs_value_copy | ( | const ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | dst, | ||
| const void * | src ) |
Copy a value.
| world | The world. |
| type | The type of the value to copy. |
| dst | A pointer to the storage to copy to. |
| src | A pointer to the value to copy. |
| int ecs_value_copy_w_type_info | ( | const ecs_world_t * | world, |
| const ecs_type_info_t * | ti, | ||
| void * | dst, | ||
| const void * | src ) |
Copy a value.
| world | The world. |
| ti | The type info of the value to copy. |
| dst | A pointer to the storage to copy to. |
| src | A pointer to the value to copy. |
| int ecs_value_fini | ( | const ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | ptr ) |
Destruct a value.
| world | The world. |
| type | The type of the value to destruct. |
| ptr | A pointer to a constructed value of type 'type'. |
| int ecs_value_fini_w_type_info | ( | const ecs_world_t * | world, |
| const ecs_type_info_t * | ti, | ||
| void * | ptr ) |
Destruct a value.
| world | The world. |
| ti | The type info of the value to destruct. |
| ptr | A pointer to a constructed value of type 'type'. |
| int ecs_value_free | ( | ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | ptr ) |
Destruct a value and free storage.
| world | The world. |
| type | The type of the value to destruct. |
| ptr | A pointer to the value. |
| int ecs_value_init | ( | const ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | ptr ) |
Construct a value in existing storage.
| world | The world. |
| type | The type of the value to create. |
| ptr | A pointer to a value of type 'type'. |
| int ecs_value_init_w_type_info | ( | const ecs_world_t * | world, |
| const ecs_type_info_t * | ti, | ||
| void * | ptr ) |
Construct a value in existing storage.
| world | The world. |
| ti | The type info of the type to create. |
| ptr | A pointer to a value of type 'type'. |
| int ecs_value_move | ( | const ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | dst, | ||
| void * | src ) |
Move a value.
| world | The world. |
| type | The type of the value to move. |
| dst | A pointer to the storage to move to. |
| src | A pointer to the value to move. |
| int ecs_value_move_ctor | ( | const ecs_world_t * | world, |
| ecs_entity_t | type, | ||
| void * | dst, | ||
| void * | src ) |
Move-construct a value.
| world | The world. |
| type | The type of the value to move. |
| dst | A pointer to the storage to move to. |
| src | A pointer to the value to move. |
| int ecs_value_move_ctor_w_type_info | ( | const ecs_world_t * | world, |
| const ecs_type_info_t * | ti, | ||
| void * | dst, | ||
| void * | src ) |
Move-construct a value.
| world | The world. |
| ti | The type info of the value to move. |
| dst | A pointer to the storage to move to. |
| src | A pointer to the value to move. |
| int ecs_value_move_w_type_info | ( | const ecs_world_t * | world, |
| const ecs_type_info_t * | ti, | ||
| void * | dst, | ||
| void * | src ) |
Move a value.
| world | The world. |
| ti | The type info of the value to move. |
| dst | A pointer to the storage to move to. |
| src | A pointer to the value to move. |
| void * ecs_value_new | ( | ecs_world_t * | world, |
| ecs_entity_t | type ) |
Construct a value in new storage.
| world | The world. |
| type | The type of the value to create. |
| void * ecs_value_new_w_type_info | ( | ecs_world_t * | world, |
| const ecs_type_info_t * | ti ) |
Construct a value in new storage.
| world | The world. |
| ti | The type info of the type to create. |