A signal class that observers can subscribe to, template specialization for signals without arguments.
More...
#include <signal.h>
|
| typedef std::function< void()> | Slot |
| | Slot is the function type that observers have to provide to connect to this signal.
|
| |
| typedef std::function< void(Arguments...)> | Slot |
| | Slot is the function type that observers have to provide to connect to this signal.
|
| |
A signal class that observers can subscribe to, template specialization for signals without arguments.
Definition at line 170 of file signal.h.
◆ Slot [1/2]
| typedef std::function<void(Arguments...)> core::Signal< Arguments >::Slot |
Slot is the function type that observers have to provide to connect to this signal.
Definition at line 42 of file signal.h.
◆ Slot [2/2]
Slot is the function type that observers have to provide to connect to this signal.
Definition at line 176 of file signal.h.
◆ Signal() [1/4]
◆ ~Signal() [1/2]
◆ Signal() [2/4]
◆ Signal() [3/4]
Signal constructs a new instance. Never throws.
Definition at line 61 of file signal.h.
◆ Signal() [4/4]
◆ ~Signal() [2/2]
◆ connect() [1/2]
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.
◆ connect() [2/2]
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 220 of file signal.h.
◆ operator()() [1/2]
operator () emits the signal.
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.
Definition at line 263 of file signal.h.
◆ operator()() [2/2]
| 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.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==() [1/2]
◆ operator==() [2/2]
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/properties-cpp-0.0.3/include/core/signal.h