![]() |
cppexpose
1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
|
Object that represents a connection to a signal. More...
#include <cppexpose/include/cppexpose/signal/Connection.h>
Classes | |
| struct | State |
| Connection state. More... | |
Public Types | |
| typedef unsigned int | Id |
| Identifier type for signals. More... | |
Public Member Functions | |
| Connection () | |
| Constructor. More... | |
| Connection (const Connection &other) | |
| Copy Constructor. More... | |
| Connection (Connection &&other) | |
| Move Constructor. More... | |
| Connection & | operator= (const Connection &other) |
| Copy operator. More... | |
| Connection & | operator= (Connection &&other) |
| Move operator. More... | |
| Id | id () const |
| Get connection ID. More... | |
| void | disconnect () |
| Close connection. More... | |
Protected Member Functions | |
| Connection (const AbstractSignal *signal, Id id) | |
| Constructor. More... | |
| void | detach () |
| Detach connection. More... | |
Protected Attributes | |
| std::shared_ptr< State > | m_state |
| Connection state. More... | |
Friends | |
| class | AbstractSignal |
Object that represents a connection to a signal.
| typedef unsigned int cppexpose::Connection::Id |
Identifier type for signals.
| cppexpose::Connection::Connection | ( | ) |
Constructor.
| cppexpose::Connection::Connection | ( | const Connection & | other | ) |
Copy Constructor.
| [in] | other | Connection |
| cppexpose::Connection::Connection | ( | Connection && | other | ) |
Move Constructor.
| [in] | other | Connection |
|
protected |
Constructor.
| [in] | signal | Source signal |
| [in] | id | Connection ID |
| Connection& cppexpose::Connection::operator= | ( | const Connection & | other | ) |
| Connection& cppexpose::Connection::operator= | ( | Connection && | other | ) |
| Id cppexpose::Connection::id | ( | ) | const |
| void cppexpose::Connection::disconnect | ( | ) |
Close connection.
|
protected |
Detach connection.
|
friend |
|
protected |
Connection state.
1.8.11