SPH
Classes | Public Member Functions | List of all members
CallbackSet< void(TArgs...)> Class Template Reference

#include <CallbackSet.h>

Inheritance diagram for CallbackSet< void(TArgs...)>:
CallbackSet< Function< void(TArgs...)> >

Classes

struct  Callback
 

Public Member Functions

 CallbackSet ()=default
 
 CallbackSet (const CallbackSet &other)
 
void insert (const SharedToken &owner, const Function< void(TArgs...)> &functor)
 
void operator() (TArgs... args) const
 Calls all registered callbacks. More...
 
Iterator< const Callback > begin () const
 
Iterator< const Callback > end () const
 
Size size () const
 
bool empty () const
 

Detailed Description

template<typename... TArgs>
class CallbackSet< void(TArgs...)>

Definition at line 18 of file CallbackSet.h.

Constructor & Destructor Documentation

◆ CallbackSet() [1/2]

template<typename... TArgs>
CallbackSet< void(TArgs...)>::CallbackSet ( )
default

◆ CallbackSet() [2/2]

template<typename... TArgs>
CallbackSet< void(TArgs...)>::CallbackSet ( const CallbackSet< void(TArgs...)> &  other)
inline

Definition at line 32 of file CallbackSet.h.

Member Function Documentation

◆ begin()

template<typename... TArgs>
Iterator<const Callback> CallbackSet< void(TArgs...)>::begin ( ) const
inline

Definition at line 50 of file CallbackSet.h.

◆ empty()

template<typename... TArgs>
bool CallbackSet< void(TArgs...)>::empty ( ) const
inline

Definition at line 62 of file CallbackSet.h.

◆ end()

template<typename... TArgs>
Iterator<const Callback> CallbackSet< void(TArgs...)>::end ( ) const
inline

Definition at line 54 of file CallbackSet.h.

◆ insert()

template<typename... TArgs>
void CallbackSet< void(TArgs...)>::insert ( const SharedToken owner,
const Function< void(TArgs...)> &  functor 
)
inline

Definition at line 35 of file CallbackSet.h.

◆ operator()()

template<typename... TArgs>
void CallbackSet< void(TArgs...)>::operator() ( TArgs...  args) const
inline

Calls all registered callbacks.

Definition at line 42 of file CallbackSet.h.

◆ size()

template<typename... TArgs>
Size CallbackSet< void(TArgs...)>::size ( ) const
inline

Definition at line 58 of file CallbackSet.h.


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