27 , world_(world_ptr) { }
43 if (component_id & ECS_ID_FLAGS_MASK) {
65 if (component_id & ECS_ID_FLAGS_MASK) {
138template <
typename... Args>
148template <
typename First,
typename Second>
151 _::type<First>::id(
world_),
152 _::type<Second>::id(
world_)));
flecs::term term() const
Create a term for a (component) type.
ecs_term_t term_t
Term type.
oper_kind_t
Operator kind.
ecs_entity_t entity_t
Entity type.
ecs_world_t world_t
World type.
bool ecs_term_is_initialized(const ecs_term_t *term)
Test whether a term is set.
ecs_entity_t id
Entity ID.
Type that describes a term (single element in a query).
ecs_term_ref_t src
Source of term.
ecs_id_t id
Component ID to be matched by term.
int16_t oper
Operator of term.
ecs_term_ref_t second
Second element of pair.
int16_t inout
Access to contents matched by term.
ecs_term_ref_t first
Component or first element of pair.
Class that wraps around a flecs::id_t.
void set_term(ecs_term_t *term)
Set the current term pointer.
term & second()
Call prior to setting values for the second identifier.
term & first()
Call prior to setting values for the first identifier.
Class that describes a term.
term(id_t first, id_t second)
Construct from a pair of IDs (no world).
term(id_t component_id)
Construct from a component ID (no world).
term(flecs::world_t *world_ptr, id_t component_id)
Construct from a world and a component ID.
term()
Default constructor.
term(flecs::world_t *world_ptr, ecs_term_t t)
Construct from a world and an existing term descriptor.
bool is_set()
Check if the term is initialized.
flecs::entity get_src()
Get the source entity of the term.
flecs::id id()
Get the term ID.
void reset()
Reset the term to its default state.
flecs::entity get_first()
Get the first element of the term.
flecs::inout_kind_t inout()
Get the inout kind of the term.
flecs::entity get_second()
Get the second element of the term.
flecs::term_t value
The underlying term value.
term(flecs::world_t *world_ptr)
Construct from a world.
term(flecs::world_t *world_ptr, entity_t first, entity_t second)
Construct from a world and a pair of entity IDs.
flecs::oper_kind_t oper()
Get the operator kind of the term.
world_t * world_
Pointer to the underlying C world.