DART
6.7.3
|
class Connection More...
#include <Signal.hpp>
Public Member Functions | |
Connection () | |
Default constructor. More... | |
Connection (const Connection &_other) | |
Copy constructor. More... | |
Connection (Connection &&_other) | |
Move constructor. More... | |
Connection & | operator= (const Connection &_other) |
Assignment operator. More... | |
Connection & | operator= (Connection &&_other) |
Move assignment operator. More... | |
virtual | ~Connection () |
Destructor. More... | |
bool | isConnected () const |
Get true if the slot is connected. More... | |
void | disconnect () const |
Disconnect the connection. More... | |
Protected Member Functions | |
Connection (const std::weak_ptr< signal::detail::ConnectionBodyBase > &_connectionBody) | |
Constructor given connection body. More... | |
Connection (std::weak_ptr< signal::detail::ConnectionBodyBase > &&_connectionBody) | |
Move constructor given connection body. More... | |
Private Attributes | |
std::weak_ptr< signal::detail::ConnectionBodyBase > | mWeakConnectionBody |
Weak pointer to connection body in the signal. More... | |
Friends | |
template<typename _Signature , template< class > class Combiner> | |
class | Signal |
class Connection
dart::common::Connection::Connection | ( | ) |
Default constructor.
dart::common::Connection::Connection | ( | const Connection & | _other | ) |
Copy constructor.
dart::common::Connection::Connection | ( | Connection && | _other | ) |
Move constructor.
|
virtual |
Destructor.
|
protected |
Constructor given connection body.
|
protected |
Move constructor given connection body.
void dart::common::Connection::disconnect | ( | ) | const |
Disconnect the connection.
bool dart::common::Connection::isConnected | ( | ) | const |
Get true if the slot is connected.
Connection & dart::common::Connection::operator= | ( | Connection && | _other | ) |
Move assignment operator.
Connection & dart::common::Connection::operator= | ( | const Connection & | _other | ) |
Assignment operator.
|
friend |
|
private |
Weak pointer to connection body in the signal.