cppexpose
1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
|
Abstract base class for signals. More...
#include <cppexpose/include/cppexpose/signal/AbstractSignal.h>
Public Member Functions | |
AbstractSignal () | |
Constructor. More... | |
virtual | ~AbstractSignal () |
Destructor. More... | |
Protected Member Functions | |
Connection | createConnection () const |
Create new empty connection. More... | |
void | disconnect (Connection &connection) const |
Disconnect connection. More... | |
virtual void | disconnectId (Connection::Id id) const =0 |
Disconnect connection by ID. More... | |
Protected Attributes | |
Connection::Id | m_nextId |
Next free connection ID. More... | |
std::unordered_map< Connection::Id, Connection > | m_connections |
Map of connections by ID. More... | |
Friends | |
class | Connection |
Abstract base class for signals.
cppexpose::AbstractSignal::AbstractSignal | ( | ) |
Constructor.
|
virtual |
Destructor.
|
protected |
Create new empty connection.
Referenced by cppexpose::Signal< Arguments >::connect().
|
protected |
Disconnect connection.
[in] | connection | Connection |
|
protectedpure virtual |
Disconnect connection by ID.
[in] | id | Connection ID |
Implemented in cppexpose::Signal< Arguments >, cppexpose::Signal< cppexpose::AbstractProperty * >, cppexpose::Signal< const int & >, cppexpose::Signal< size_t, cppexpose::AbstractProperty * >, cppexpose::Signal< const T & >, and cppexpose::Signal< const std::string & >.
|
friend |
|
mutableprotected |
Next free connection ID.
|
mutableprotected |
Map of connections by ID.