17 term() : term(
nullptr) { }
22 , world_(world_ptr) { }
27 if (component_id & ECS_ID_FLAGS_MASK) {
35 : term(world_ptr, ecs_pair(first, second)) { }
37 term(
id_t component_id) : term(
nullptr, component_id) { }
39 term(
id_t first,
id_t second) : term() {
101template <
typename... Args>
111template <
typename First,
typename Second>
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)
Class that describes a term.
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.
flecs::oper_kind_t oper()
Get the operator kind of the term.
world_t * world_
Pointer to the underlying C world.