|
| | ref () |
| | Default constructor.
|
| |
| | ref (world_t *world, entity_t entity, flecs::id_t id=0) |
| | Construct a reference from a world, entity, and optional component ID.
|
| |
| | ref (flecs::entity entity, flecs::id_t id=0) |
| | Construct a reference from an entity and optional component ID.
|
| |
| T * | operator-> () |
| | Dereference operator.
|
| |
| T * | get () |
| | Get a typed pointer to the component value.
|
| |
| T * | try_get () |
| | Try to get a typed pointer to the component value.
|
| |
| | untyped_ref () |
| | Default constructor.
|
| |
| | untyped_ref (world_t *world, entity_t entity, flecs::id_t id) |
| | Construct a reference from a world, entity, and component ID.
|
| |
| | untyped_ref (flecs::entity entity, flecs::id_t id) |
| | Construct a reference from an entity and component ID.
|
| |
| flecs::entity | entity () const |
| | Return the entity associated with the reference.
|
| |
| flecs::id | component () const |
| | Return the component associated with the reference.
|
| |
| void * | get () |
| | Get a pointer to the component value.
|
| |
| bool | has () |
| | Check if the reference has a valid component value.
|
| |
| flecs::world | world () const |
| | Get the world associated with the reference.
|
| |
| | operator bool () |
| | Implicit conversion to bool.
|
| |
| void * | try_get () |
| | Try to get a pointer to the component value.
|
| |
template<typename T>
struct flecs::ref< T >
Component reference.
Reference to a component from a specific entity.
Definition at line 108 of file ref.hpp.