19template <
typename... Comps,
typename... Args>
20conditional_t<
sizeof...(Args) == 0 && _::is_sparse_query<Comps...>::value,
34template <
typename... Comps,
typename... Args>
57template <
typename Func>
58void each(Func&& func)
const;
74template <
typename T,
typename Func>
75void each(Func&& func)
const;
78template <
typename Func>
flecs::query_builder< Comps... > query_builder(Args &&... args) const
Create a query builder.
conditional_t< sizeof...(Args)==0 &&_::is_sparse_query< Comps... >::value, flecs::sparse_query< Comps... >, flecs::query< Comps... > > query(Args &&... args) const
Create a query.
void each(Func &&func) const
Iterate over all entities with components in the argument list of the function.
void each(flecs::id_t term_id, Func &&func) const
Iterate over all entities with the provided (component) ID.
void each(Func &&func) const
Iterate over all entities with the provided component.
flecs::query query(flecs::entity query_entity) const
Create a query from an entity.
Query that iterates sparse component storages directly.