20 return flecs::id(m_iter->world, m_iter->event_id);
28 ecs_assert(row <
static_cast<size_t>(m_iter->count),
29 ECS_COLUMN_INDEX_OUT_OF_RANGE, NULL);
48 ecs_check(ECS_HAS_ID_FLAG(
id, PAIR), ECS_INVALID_PARAMETER, NULL);
64 m_iter->offset, m_iter->count);
69 ecs_assert(var_id != -1, ECS_INVALID_PARAMETER, 0);
77 ecs_rule_iter_t *rit = &m_iter->priv.iter.rule;
78 const flecs::rule_t *r = rit->rule;
80 ecs_assert(var_id != -1, ECS_INVALID_PARAMETER, name);
#define ecs_assert(condition, error_code,...)
Assert.
#define ecs_check(condition, error_code,...)
Check.
FLECS_API int32_t ecs_rule_find_var(const ecs_rule_t *rule, const char *name)
Find variable index.
ecs_id_t ecs_field_id(const ecs_iter_t *it, int32_t index)
Return id matched for field.
ecs_entity_t ecs_iter_get_var(ecs_iter_t *it, int32_t var_id)
Get value of iterator variable as entity.
ecs_entity_t ecs_field_src(const ecs_iter_t *it, int32_t index)
Return field source.
const ecs_type_t * ecs_table_get_type(const ecs_table_t *table)
Get type for table.
column(T *array, size_t count, bool is_shared=false)
Create column from component array.
Class that wraps around a flecs::id_t.
Class for iterating over query results.
flecs::id id(int32_t index) const
Obtain id matched for field.
flecs::entity src(int32_t index) const
Obtain field source (0 if This).
flecs::entity entity(size_t row) const
Obtain mutable handle to entity being iterated over.
flecs::id pair(int32_t index) const
Obtain pair id matched for field.
flecs::entity get_var(int var_id) const
Get value of variable by id.
flecs::column< A > field(int32_t index) const
Get readonly access to field data.