![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Classes | |
| struct | flecs::query_builder< Components > |
| Query builder. More... | |
| struct | flecs::query_builder_i< Base, Components > |
| Query builder interface. More... | |
| struct | flecs::query< Components > |
| Typed query. More... | |
| struct | flecs::query_base |
| Base class for queries. More... | |
| struct | flecs::term_ref_builder_i< Base > |
| Term identifier builder. More... | |
| struct | flecs::term_builder_i< Base > |
| Term builder interface. More... | |
| struct | flecs::term |
| Class that describes a term. More... | |
| template<typename... Comps, typename... Args> | |
| flecs::query< Comps... > | flecs::world::query (Args &&... args) const |
| Create a query. | |
| flecs::query | query (flecs::entity query_entity) const |
| Create a query from an entity. | |
| template<typename... Comps, typename... Args> | |
| flecs::query_builder< Comps... > | query_builder (Args &&... args) const |
| Create a query builder. | |
| template<typename Func > | |
| void | each (Func &&func) const |
| Iterate over all entities with components in the argument list of the function. | |
| template<typename T , typename Func > | |
| void | each (Func &&func) const |
| Iterate over all entities with the provided component. | |
| template<typename Func > | |
| void | each (flecs::id_t term_id, Func &&func) const |
| Iterate over all entities with the provided (component) ID. | |
| template<typename... Args> | |
| flecs::term | flecs::world::term (Args &&... args) const |
| Create a term. | |
| template<typename T > | |
| flecs::term | term () const |
| Create a term for a (component) type. | |
| template<typename First , typename Second > | |
| flecs::term | term () const |
| Create a term for a pair. | |
|
related |
Iterate over all entities with components in the argument list of the function.
The function parameter must match the following signature:
or:
or:
|
related |
Iterate over all entities with the provided component.
The function parameter must match the following signature:
or:
| flecs::query< Comps... > query | ( | Args &&... | args | ) | const |
Create a query.
|
related |
Create a query from an entity.
|
related |
Create a query builder.