![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Query that iterates sparse component storages directly. More...
#include <sparse_query.hpp>
Public Member Functions | |
| sparse_query (flecs::world_t *world) | |
| template<typename Func > | |
| void | each (Func &&func) const |
| Iterate the query. | |
| int32_t | count () const |
| Return the number of entities matched by the query. | |
| operator flecs::query< Components... > () const | |
| Convert to a regular flecs::query for the same components. | |
Query that iterates sparse component storages directly.
Returned by world::query() when all components have the dont_fragment trait and don't declare the on_instantiate::inherit policy.
Definition at line 27 of file sparse_query.hpp.
|
inlineexplicit |
Definition at line 32 of file sparse_query.hpp.
|
inline |
Return the number of entities matched by the query.
Definition at line 48 of file sparse_query.hpp.
|
inline |
Iterate the query.
The function signature must match func(flecs::entity e, Components&...) or func(Components&...).
Definition at line 43 of file sparse_query.hpp.
|
inline |
Convert to a regular flecs::query for the same components.