Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::_::each_delegate< Func, Components > Struct Template Reference
Inheritance diagram for flecs::_::each_delegate< Func, Components >:
[legend]

Public Types

using Terms = typename term_ptrs<Components ...>::array
 

Public Member Functions

template<if_not_t< is_same< decay_t< Func >, decay_t< Func > & >::value > = 0>
 each_delegate (Func &&func) noexcept
 
 each_delegate (const Func &func) noexcept
 
void invoke (ecs_iter_t *iter) const
 

Static Public Member Functions

static void run (ecs_iter_t *iter)
 
static each_delegatemake (const Func &func)
 
static void destruct (void *obj)
 
static void run_add (ecs_iter_t *iter)
 
static void run_remove (ecs_iter_t *iter)
 
static void run_set (ecs_iter_t *iter)
 
static bool instanced ()
 

Static Public Attributes

static constexpr bool PassEntity
 
static constexpr bool PassIter
 

Detailed Description

template<typename Func, typename ... Components>
struct flecs::_::each_delegate< Func, Components >

Definition at line 173 of file delegate.hpp.

Member Typedef Documentation

◆ Terms

template<typename Func , typename ... Components>
using flecs::_::each_delegate< Func, Components >::Terms = typename term_ptrs<Components ...>::array

Definition at line 187 of file delegate.hpp.

Constructor & Destructor Documentation

◆ each_delegate() [1/2]

template<typename Func , typename ... Components>
template<if_not_t< is_same< decay_t< Func >, decay_t< Func > & >::value > = 0>
flecs::_::each_delegate< Func, Components >::each_delegate ( Func && func)
inlineexplicitnoexcept

Definition at line 190 of file delegate.hpp.

◆ each_delegate() [2/2]

template<typename Func , typename ... Components>
flecs::_::each_delegate< Func, Components >::each_delegate ( const Func & func)
inlineexplicitnoexcept

Definition at line 193 of file delegate.hpp.

Member Function Documentation

◆ destruct()

template<typename Func , typename ... Components>
static void flecs::_::each_delegate< Func, Components >::destruct ( void * obj)
inlinestatic

Definition at line 224 of file delegate.hpp.

◆ instanced()

template<typename Func , typename ... Components>
static bool flecs::_::each_delegate< Func, Components >::instanced ( )
inlinestatic

Definition at line 253 of file delegate.hpp.

◆ invoke()

template<typename Func , typename ... Components>
void flecs::_::each_delegate< Func, Components >::invoke ( ecs_iter_t * iter) const
inline

Definition at line 199 of file delegate.hpp.

◆ make()

template<typename Func , typename ... Components>
static each_delegate * flecs::_::each_delegate< Func, Components >::make ( const Func & func)
inlinestatic

Definition at line 219 of file delegate.hpp.

◆ run()

template<typename Func , typename ... Components>
static void flecs::_::each_delegate< Func, Components >::run ( ecs_iter_t * iter)
inlinestatic

Definition at line 212 of file delegate.hpp.

◆ run_add()

template<typename Func , typename ... Components>
static void flecs::_::each_delegate< Func, Components >::run_add ( ecs_iter_t * iter)
inlinestatic

Definition at line 229 of file delegate.hpp.

◆ run_remove()

template<typename Func , typename ... Components>
static void flecs::_::each_delegate< Func, Components >::run_remove ( ecs_iter_t * iter)
inlinestatic

Definition at line 237 of file delegate.hpp.

◆ run_set()

template<typename Func , typename ... Components>
static void flecs::_::each_delegate< Func, Components >::run_set ( ecs_iter_t * iter)
inlinestatic

Definition at line 245 of file delegate.hpp.

Member Data Documentation

◆ PassEntity

template<typename Func , typename ... Components>
constexpr bool flecs::_::each_delegate< Func, Components >::PassEntity
staticconstexpr
Initial value:
=
(sizeof...(Components) + 1) == (arity<Func>::value)

Definition at line 176 of file delegate.hpp.

◆ PassIter

template<typename Func , typename ... Components>
constexpr bool flecs::_::each_delegate< Func, Components >::PassIter
staticconstexpr
Initial value:
=
(sizeof...(Components) + 2) == (arity<Func>::value)

Definition at line 181 of file delegate.hpp.


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