properties-cpp 0.0.1
A very simple convenience library for handling properties and signals in C++11.
|
The Connection class models a signal-slot connection. More...
#include <connection.h>
Public Types | |
typedef std::function< void(const std::function< void()> &)> | Dispatcher |
Public Member Functions | |
bool | is_connected () const |
Checks if this instance corresponds to an active signal-slot connection. More... | |
void | disconnect () |
End a signal-slot connection. More... | |
void | dispatch_via (const Dispatcher &dispatcher) |
Installs a dispatcher for this signal-slot connection. More... | |
The Connection class models a signal-slot connection.
Definition at line 31 of file connection.h.
typedef std::function<void(const std::function<void()>&)> core::Connection::Dispatcher |
Definition at line 34 of file connection.h.
|
inline |
End a signal-slot connection.
Definition at line 51 of file connection.h.
Referenced by TEST(), and core::ScopedConnection::~ScopedConnection().
|
inline |
Installs a dispatcher for this signal-slot connection.
dispatcher | The dispatcher to be used for signal emissions. |
Definition at line 61 of file connection.h.
Referenced by TEST().
|
inline |
Checks if this instance corresponds to an active signal-slot connection.
Definition at line 40 of file connection.h.