DART 6.10.1
Loading...
Searching...
No Matches
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.
 
 ScopedConnection (Connection &&_other)
 Move constructor.
 
virtual ~ScopedConnection ()
 Destructor.
 
bool isConnected () const
 Get true if the slot is connected.
 
void disconnect () const
 Disconnect the connection.
 

Private Attributes

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

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.