Public Member Functions | Private Member Functions | List of all members
RTT::ScopedHandle Class Reference

#include <Handle.hpp>

Inheritance diagram for RTT::ScopedHandle:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

RTT::ScopedHandle::ScopedHandle ( )
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.


The documentation for this class was generated from the following files:


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:41