DART  6.10.1
dart::common::Connection Class Reference

class Connection More...

#include <Signal.hpp>

Inheritance diagram for dart::common::Connection:
dart::common::ScopedConnection

Public Member Functions

 Connection ()
 Default constructor. More...
 
 Connection (const Connection &_other)
 Copy constructor. More...
 
 Connection (Connection &&_other)
 Move constructor. More...
 
Connectionoperator= (const Connection &_other)
 Assignment operator. More...
 
Connectionoperator= (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::ConnectionBodyBasemWeakConnectionBody
 Weak pointer to connection body in the signal. More...
 

Friends

template<typename _Signature , template< class > class Combiner>
class Signal
 

Detailed Description

class Connection

Constructor & Destructor Documentation

◆ Connection() [1/5]

dart::common::Connection::Connection ( )

Default constructor.

◆ Connection() [2/5]

dart::common::Connection::Connection ( const Connection _other)

Copy constructor.

◆ Connection() [3/5]

dart::common::Connection::Connection ( Connection &&  _other)

Move constructor.

◆ ~Connection()

dart::common::Connection::~Connection ( )
virtual

Destructor.

◆ Connection() [4/5]

dart::common::Connection::Connection ( const std::weak_ptr< signal::detail::ConnectionBodyBase > &  _connectionBody)
protected

Constructor given connection body.

◆ Connection() [5/5]

dart::common::Connection::Connection ( std::weak_ptr< signal::detail::ConnectionBodyBase > &&  _connectionBody)
protected

Move constructor given connection body.

Member Function Documentation

◆ disconnect()

void dart::common::Connection::disconnect ( ) const

Disconnect the connection.

◆ isConnected()

bool dart::common::Connection::isConnected ( ) const

Get true if the slot is connected.

◆ operator=() [1/2]

Connection & dart::common::Connection::operator= ( Connection &&  _other)

Move assignment operator.

◆ operator=() [2/2]

Connection & dart::common::Connection::operator= ( const Connection _other)

Assignment operator.

Friends And Related Function Documentation

◆ Signal

template<typename _Signature , template< class > class Combiner>
friend class Signal
friend

Member Data Documentation

◆ mWeakConnectionBody

std::weak_ptr<signal::detail::ConnectionBodyBase> dart::common::Connection::mWeakConnectionBody
private

Weak pointer to connection body in the signal.