Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
mixin.inl
Go to the documentation of this file.
1
19template <typename... Comps, typename... Args>
20conditional_t<sizeof...(Args) == 0 && _::is_sparse_query<Comps...>::value,
22query(Args &&... args) const;
23
29
34template <typename... Comps, typename... Args>
35flecs::query_builder<Comps...> query_builder(Args &&... args) const;
36
57template <typename Func>
58void each(Func&& func) const;
59
74template <typename T, typename Func>
75void each(Func&& func) const;
76
78template <typename Func>
79void each(flecs::id_t term_id, Func&& func) const;
80
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.
ecs_id_t id_t
ID type.
Definition c_types.hpp:20
Entity.
Definition entity.hpp:30
Query builder.
Definition builder.hpp:24
Typed query.
Definition impl.hpp:262
Query that iterates sparse component storages directly.