ezEngine  Milestone 9
ezDelegate< R(EZ_LIST(ARG, ARG_COUNT))> Struct Template Reference
Inheritance diagram for ezDelegate< R(EZ_LIST(ARG, ARG_COUNT))>:

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
template<typename Method , typename Class >
EZ_FORCE_INLINE ezDelegate (Method method, Class *pInstance)
 Constructs the delegate from a member function type and takes the class instance on which to call the function later.
 
template<typename Method , typename Class >
EZ_FORCE_INLINE ezDelegate (Method method, const Class *pInstance)
 Constructs the delegate from a member function type and takes the (const) class instance on which to call the function later.
 
template<typename Function >
EZ_FORCE_INLINE ezDelegate (Function function)
 Constructs the delegate from a regular C function type.
 
EZ_FORCE_INLINE void operator= (const SelfType &other)
 Copies the data from another delegate.
 
EZ_FORCE_INLINE void operator= (std::nullptr_t)
 Resets a delegate to an invalid state.
 
EZ_FORCE_INLINE R operator() (EZ_PAIR_LIST(ARG, arg, ARG_COUNT)) const
 Function call operator. This will call the function that is bound to the delegate, or assert if nothing was bound.
 
EZ_ALWAYS_INLINE bool operator== (const SelfType &other) const
 Checks whether two delegates are bound to the exact same function, including the class instance.
 
EZ_ALWAYS_INLINE bool operator!= (const SelfType &other) const
 Checks whether two delegates are bound to the exact same function, including the class instance.
 
EZ_ALWAYS_INLINE bool IsValid () const
 Returns true when the delegate is bound to a valid non-nullptr function.
 
EZ_ALWAYS_INLINE void Invalidate ()
 Resets a delegate to an invalid state.
 
EZ_ALWAYS_INLINE void * GetClassInstance () const
 Returns the class instance that is used to call a member function pointer on.
 

Additional Inherited Members

- Protected Attributes inherited from ezDelegateBase
InstancePtr m_pInstance
 

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