Skip to content
Flecs v4.1
flecs::_::each_delegate< Func, Components > Struct Template Reference

Public Types

using Terms = typename field_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 void run_each (ecs_iter_t *iter)
static each_delegate * make (const Func &func)
static void destruct (void *obj)
template<component_binding_ctx::Hook Hook>
static void run_hook (ecs_iter_t *iter)

Public Attributes

Func func_

Protected Member Functions

template<bool Find, bool Shared = true>
flecs::entity invoke_until (ecs_iter_t *iter) const

Detailed Description

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

Definition at line 135 of file delegate.hpp.

Member Typedef Documentation

◆ Terms

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

Definition at line 136 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 139 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 142 of file delegate.hpp.

Member Function Documentation

◆ destruct()

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

Definition at line 175 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 148 of file delegate.hpp.

◆ invoke_until()

template<typename Func, typename ... Components>
template<bool Find, bool Shared = true>
flecs::entity flecs::_::each_delegate< Func, Components >::invoke_until ( ecs_iter_t * iter) const
inlineprotected

Definition at line 191 of file delegate.hpp.

◆ make()

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

Definition at line 170 of file delegate.hpp.

◆ run()

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

Definition at line 153 of file delegate.hpp.

◆ run_each()

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

Definition at line 161 of file delegate.hpp.

◆ run_hook()

template<typename Func, typename ... Components>
template<component_binding_ctx::Hook Hook>
void flecs::_::each_delegate< Func, Components >::run_hook ( ecs_iter_t * iter)
inlinestatic

Definition at line 180 of file delegate.hpp.

Member Data Documentation

◆ func_

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

Definition at line 265 of file delegate.hpp.


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