Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
mixin.inl File Reference

Filter world mixin. More...

Go to the source code of this file.

Functions

template<typename... Comps, typename... Args>
flecs::filter_builder< Comps... > filter_builder (Args &&... args) const
 Create a filter builder. More...
 
template<typename Func >
void each (Func &&func) const
 Iterate over all entities with components in argument list of function. More...
 
template<typename T , typename Func >
void each (Func &&func) const
 Iterate over all entities with provided component. More...
 
template<typename Func >
void each (flecs::id_t term_id, Func &&func) const
 Iterate over all entities with provided (component) id.
 

Detailed Description

Filter world mixin.

Definition in file mixin.inl.

Function Documentation

◆ each() [1/2]

template<typename Func >
void each ( Func &&  func) const

Iterate over all entities with components in argument list of function.

The function parameter must match the following signature: void(*)(T&, U&, ...) or void(*)(flecs::entity, T&, U&, ...)

◆ each() [2/2]

template<typename T , typename Func >
void each ( Func &&  func) const

Iterate over all entities with provided component.

The function parameter must match the following signature: void(*)(T&) or void(*)(flecs::entity, T&)

◆ filter_builder()

template<typename... Comps, typename... Args>
flecs::filter_builder< Comps... > filter_builder ( Args &&...  args) const

Create a filter builder.

See also
ecs_filter_init