Scanframe Modular Application 0.1.0
|
Emitter class type for creating an instance which is emitting events to listeners. More...
#include <TListener.h>
Public Member Functions | |
emitter_type ()=default | |
~emitter_type () | |
Destructor clearing all shared pointers. | |
TListener * | linkListener (ListenerList *listener_list, const func_type &function) |
Assigns a listener instance to this handler instance and also to the passed listener list. | |
void | callListeners (Args... args) |
Call the registered listeners. | |
size_t | cleanup () |
Removes expired listeners. | |
void | flush () |
Removes all listeners. | |
Emitter class type for creating an instance which is emitting events to listeners.
|
default |
Default constructor.
|
inline |
Destructor clearing all shared pointers.
|
inline |
Call the registered listeners.
Also cleans up when pointer expired.
args | Arguments set using this template. |
|
inline |
Removes expired listeners.
|
inline |
Removes all listeners.
|
inline |
Assigns a listener instance to this handler instance and also to the passed listener list.