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 49 of file sparse_query.hpp.
|
inlineexplicit |
Definition at line 54 of file sparse_query.hpp.
|
inline |
Return the number of entities matched by the query.
Definition at line 70 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 65 of file sparse_query.hpp.
|
inline |
Convert to a regular flecs::query for the same components.