Skip to content
Flecs v4.1
flecs::_::chained_iterable< Create, Next, Components > Struct Template Reference

Public Member Functions

 chained_iterable (int32_t first, int32_t second, const iterable< Components... > *source)
Public Member Functions inherited from flecs::iterable< Components... >
void each (Func &&func) const
 Each iterator.
void run (Func &&func) const
 Run the iterator.
flecs::entity find (Func &&func) const
 Find the first entity matching a condition.
iter_iterable< Components... > iter (flecs::world_t *world=nullptr) const
 Create an iterator.
page_iterable< Components... > page (int32_t offset, int32_t limit)
 Page iterator.
worker_iterable< Components... > worker (int32_t index, int32_t count)
 Worker iterator.
int32_t count () const
 Return the number of entities matched by the iterable.
bool is_true () const
 Return whether the iterable has any matches.
flecs::entity first () const
 Return the first entity matched by the iterable.
iter_iterable< Components... > set_var (Var var, Value value) const
iter_iterable< Components... > set_group (uint64_t group_id) const
 Limit results to tables with the specified group ID (grouped queries only).
virtual ~iterable ()
 Virtual destructor.

Protected Member Functions

ecs_iter_t get_iter (flecs::world_t *) const override
ecs_iter_next_action_t next_action () const override

Additional Inherited Members

Protected Attributes inherited from flecs::iterable< Components... >
friend iter_iterable< Components... >
friend page_iterable< Components... >
friend worker_iterable< Components... >

Detailed Description

template<auto Create, ecs_iter_next_action_t Next, typename... Components>
struct flecs::_::chained_iterable< Create, Next, Components >

Definition at line 290 of file iterable.hpp.

Constructor & Destructor Documentation

◆ chained_iterable()

template<auto Create, ecs_iter_next_action_t Next, typename... Components>
flecs::_::chained_iterable< Create, Next, Components >::chained_iterable ( int32_t first,
int32_t second,
const iterable< Components... > * source )
inline

Definition at line 291 of file iterable.hpp.

Member Function Documentation

◆ get_iter()

template<auto Create, ecs_iter_next_action_t Next, typename... Components>
ecs_iter_t flecs::_::chained_iterable< Create, Next, Components >::get_iter ( flecs::world_t * ) const
inlineoverrideprotectedvirtual

Implements flecs::iterable< Components... >.

Definition at line 295 of file iterable.hpp.

◆ next_action()

template<auto Create, ecs_iter_next_action_t Next, typename... Components>
ecs_iter_next_action_t flecs::_::chained_iterable< Create, Next, Components >::next_action ( ) const
inlineoverrideprotectedvirtual

Implements flecs::iterable< Components... >.

Definition at line 299 of file iterable.hpp.


The documentation for this struct was generated from the following file: