#include <Handle.hpp>
Public Member Functions | |
ScopedHandle (const Handle &hs) | |
~ScopedHandle () | |
Public Member Functions inherited from RTT::Handle | |
bool | connect () |
bool | connected () const |
bool | disconnect () |
Handle () | |
the connection type for the slot of this Handle More... | |
Handle (connection_t conn) | |
Handle (const Handle &hs) | |
operator bool () const | |
bool | ready () const |
~Handle () | |
Private Member Functions | |
ScopedHandle () | |
Additional Inherited Members | |
Protected Attributes inherited from RTT::Handle | |
connection_t | m_conn |
A scoped connection Handle of a (connected) slot which disconnects a slot from a signal in its destructor.
This does not invalidate the connection if this handle is shared with another handle object. Meaning, if ScopedHandle disconnects(), another handle object may re-connect().
Definition at line 137 of file Handle.hpp.
|
private |
RTT::ScopedHandle::ScopedHandle | ( | const Handle & | hs | ) |
Definition at line 92 of file Handle.cpp.
RTT::ScopedHandle::~ScopedHandle | ( | ) |
If connected, disconnect the slot from the signal. Calls this->disconnect(), but keeps the connection object alive.
Definition at line 98 of file Handle.cpp.