Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::_::find_delegate< Func, Components > Struct Template Reference
Inheritance diagram for flecs::_::find_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>
 find_delegate (Func &&func) noexcept
 
 find_delegate (const Func &func) noexcept
 
flecs::entity invoke (ecs_iter_t *iter) const
 

Static Public Member Functions

static bool instanced ()
 

Static Public Attributes

static constexpr bool PassEntity
 
static constexpr bool PassIter
 

Detailed Description

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

Definition at line 349 of file delegate.hpp.

Member Typedef Documentation

◆ Terms

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

Definition at line 363 of file delegate.hpp.

Constructor & Destructor Documentation

◆ find_delegate() [1/2]

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

Definition at line 366 of file delegate.hpp.

◆ find_delegate() [2/2]

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

Definition at line 369 of file delegate.hpp.

Member Function Documentation

◆ instanced()

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

Definition at line 386 of file delegate.hpp.

◆ invoke()

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

Definition at line 375 of file delegate.hpp.

Member Data Documentation

◆ PassEntity

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

Definition at line 352 of file delegate.hpp.

◆ PassIter

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

Definition at line 357 of file delegate.hpp.


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