0.44.0
|
#include <iaEvent.h>
Public Types | |
using | ReturnHandler = iaEventReturnHandler< R, Args... > |
using | ReturnType = typename ReturnHandler::ReturnType |
Public Member Functions | |
void | add (const iaDelegate< R, Args... > &delegate) |
void | remove (const iaDelegate< R, Args... > &delegate) |
void | block (bool blockEvent=true) |
void | unblock () |
bool | isBlocked () |
ReturnType | operator() (Args... args) |
void | clear () |
bool | hasDelegates () |
Protected Attributes | |
iaMutex | _mutex |
std::vector< iaDelegate< R, Args... > > | _delegates |
bool | _blocked = false |
event container for delegates that executes delegates when triggered
using iaux::iaEvent< R, Args >::ReturnHandler = iaEventReturnHandler<R, Args...> |
using iaux::iaEvent< R, Args >::ReturnType = typename ReturnHandler::ReturnType |
|
inline |
adds delegate to event
delegate | the delegate to add |
|
inline |
blocks event from executing it's delegates
blockEvent | if true event is blocked |
|
inline |
clears delegates from event
|
inline |
|
inline |
|
inline |
executes event
|
inline |
removes delegate from event
delegate | the delegate to remove |
|
inline |
unblocks event
|
protected |
|
protected |
|
protected |