#include <event.h>
Public Types | |
typedef std::function< void(TOwningType &, const TEventArgs &)> | EventFunction |
Public Member Functions | |
template<typename TSubscribingType > | |
void | bind_member_func (TSubscribingType *caller, void(TSubscribingType::*member_func)(TOwningType &, const TEventArgs &)) |
EventHandler ()=default | |
template<typename TSubscribingType > | |
void | unbind_member_func (TSubscribingType *caller, void(TSubscribingType::*member_func)(TOwningType &, const TEventArgs &)) |
Public Attributes | |
friend | TOwningType |
Private Member Functions | |
void | invoke (TOwningType &sender, TEventArgs a) |
Private Attributes | |
std::vector< std::function< void(TOwningType &, const TEventArgs &)> > | callbacks_ |
typedef std::function<void(TOwningType&, const TEventArgs&)> EventHandler< TOwningType, TEventArgs >::EventFunction |
|
default |
|
inline |
|
inlineprivate |
|
inline |
|
private |
friend EventHandler< TOwningType, TEventArgs >::TOwningType |