![]() |
Flecs v3.2
A fast entity component system (ECS) for C & C++
|
Public Member Functions | |
template<typename Iterable > | |
iter_iterable (Iterable *it, flecs::world_t *world) | |
iter_iterable< Components... > & | set_var (int var_id, flecs::entity_t value) |
int32_t | count () |
bool | is_true () |
flecs::entity | first () |
iter_iterable< Components... > & | set_group (uint64_t group_id) |
template<typename Group > | |
iter_iterable< Components... > & | set_group () |
![]() | |
void | each (Func &&func) const |
Each iterator. More... | |
void | each (flecs::world_t *world, Func &&func) const |
void | each (flecs::iter &it, Func &&func) const |
void | each (flecs::entity e, Func &&func) const |
flecs::entity | find (Func &&func) const |
void | iter (Func &&func) const |
Iter iterator. More... | |
void | iter (flecs::world_t *world, Func &&func) const |
void | iter (flecs::iter &it, Func &&func) const |
void | iter (flecs::entity e, Func &&func) const |
iter_iterable< Components... > | iter (flecs::world_t *world=nullptr) const |
Create iterator. More... | |
page_iterable< Components... > | page (int32_t offset, int32_t limit) |
Page iterator. More... | |
worker_iterable< Components... > | worker (int32_t index, int32_t count) |
Worker iterator. More... | |
int32_t | count () const |
Return number of entities matched by iterable. More... | |
bool | is_true () const |
Return whether iterable has any matches. More... | |
flecs::entity | first () const |
Return first entity matched by iterable. More... | |
Protected Member Functions | |
ecs_iter_t | get_iter (flecs::world_t *world) const |
ecs_iter_next_action_t | next_action () const |
ecs_iter_next_action_t | next_each_action () const |
![]() | |
virtual ecs_iter_t | get_iter (flecs::world_t *stage) const=0 |
virtual ecs_iter_next_action_t | next_action () const=0 |
virtual ecs_iter_next_action_t | next_each_action () const=0 |
void | iterate (flecs::world_t *stage, Func &&func, NextFunc next, Args &&... args) const |
flecs::entity | iterate_find (flecs::world_t *stage, Func &&func, NextFunc next, Args &&... args) const |
Additional Inherited Members | |
![]() | |
friend | iter_iterable< Components... > |
friend | page_iterable< Components... > |
friend | worker_iterable< Components... > |
Definition at line 173 of file iterable.hpp.
|
inline |
Definition at line 175 of file iterable.hpp.
|
inline |
Definition at line 196 of file iterable.hpp.
|
inline |
Definition at line 214 of file iterable.hpp.
|
inlineprotectedvirtual |
Implements flecs::iterable< Components... >.
Definition at line 237 of file iterable.hpp.
|
inline |
Definition at line 205 of file iterable.hpp.
|
inlineprotectedvirtual |
Implements flecs::iterable< Components... >.
Definition at line 246 of file iterable.hpp.
|
inlineprotectedvirtual |
Implements flecs::iterable< Components... >.
Definition at line 250 of file iterable.hpp.
|
inline |
Definition at line 231 of file iterable.hpp.
|
inline |
Definition at line 224 of file iterable.hpp.
|
inline |
Definition at line 182 of file iterable.hpp.