template<typename ... Arguments>
class core::Signal< Arguments >
A signal class that observers can subscribe to.
- Template Parameters
-
Arguments | List of argument types passed on to observers when the signal is emitted. |
Definition at line 36 of file signal.h.
template<typename ... Arguments>
Connects the provided slot to this signal instance.
Calling this method is thread-safe and synchronized with any other connect, signal emission or disconnect calls.
- Parameters
-
slot | The function to be called when the signal is emitted. |
- Returns
- A connection object corresponding to the signal-slot connection.
Definition at line 86 of file signal.h.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
template<typename ... Arguments>
void core::Signal< Arguments >::operator() |
( |
Arguments... |
args | ) |
|
|
inline |
operator () emits the signal with the provided parameters.
Please note that signal emissions might not be delivered immediately to registered slots, depending on whether the respective connection is dispatched via a queueing dispatcher. For that reason, the lifetime of the arguments has to exceed the scope of the call to this operator and its surrounding scope.
- Parameters
-
args | The arguments to be passed on to registered slots. |
Definition at line 132 of file signal.h.