DART  6.6.2
dart::common::ScopedConnection Class Reference

class ScopedConnection More...

#include <Signal.hpp>

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

Public Member Functions

 ScopedConnection (const Connection &_other)
 Default constructor. More...
 
 ScopedConnection (Connection &&_other)
 Move constructor. More...
 
virtual ~ScopedConnection ()
 Destructor. More...
 
bool isConnected () const
 Get true if the slot is connected. More...
 
void disconnect () const
 Disconnect the connection. More...
 

Private Attributes

std::weak_ptr< signal::detail::ConnectionBodyBasemWeakConnectionBody
 Weak pointer to connection body in the signal. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ ScopedConnection() [1/2]

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

Default constructor.

◆ ScopedConnection() [2/2]

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

Move constructor.

◆ ~ScopedConnection()

dart::common::ScopedConnection::~ScopedConnection ( )
virtual

Destructor.

Member Function Documentation

◆ disconnect()

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

Disconnect the connection.

◆ isConnected()

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

Get true if the slot is connected.

Member Data Documentation

◆ mWeakConnectionBody

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

Weak pointer to connection body in the signal.