|
Orocos Real-Time Toolkit
2.9.0
|
A scoped connection Handle of a (connected) slot which disconnects a slot from a signal in its destructor. More...
#include <rtt/Handle.hpp>
Public Member Functions | |
| ScopedHandle (const Handle &hs) | |
| ~ScopedHandle () | |
| If connected, disconnect the slot from the signal. More... | |
| bool | connect () |
| (Re-)Connect the slot with the signal. More... | |
| bool | disconnect () |
| Disconnect the slot from the signal. More... | |
| bool | connected () const |
| Inspect if this Handle represents a connected signal and slot. More... | |
| operator bool () const | |
| Inspect if this Handle is pointing to a valid (existing) connection. More... | |
| bool | ready () const |
| Inspect if this handle is pointing to valid (existing) connection(s). More... | |
Protected Attributes | |
| connection_t | m_conn |
| This is actually a smart pointer which always points to an existing connection object. More... | |
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.
| 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.
References RTT::Handle::disconnect().
|
inherited |
(Re-)Connect the slot with the signal.
| true | the slot is connected. |
| false | no valid signal or slot in this Handle |
Definition at line 65 of file Handle.cpp.
References RTT::Handle::connected(), and RTT::Handle::m_conn.
Referenced by RTT::DataFlowInterface::addEventPort(), and RTT::internal::OROCOS_SIGNAL_N< R, SlotFunctionT >::connect().
|
inherited |
Inspect if this Handle represents a connected signal and slot.
Definition at line 79 of file Handle.cpp.
References RTT::Handle::m_conn.
Referenced by RTT::Handle::connect(), and RTT::Handle::disconnect().
|
inherited |
Disconnect the slot from the signal.
| true | the slot is disconnected. |
| false | no valid signal or slot in this Handle |
Definition at line 72 of file Handle.cpp.
References RTT::Handle::connected(), and RTT::Handle::m_conn.
Referenced by RTT::DataFlowInterface::addEventPort(), and ~ScopedHandle().
|
inherited |
Inspect if this Handle is pointing to a valid (existing) connection.
Definition at line 83 of file Handle.cpp.
References RTT::Handle::m_conn.
|
inherited |
Inspect if this handle is pointing to valid (existing) connection(s).
Definition at line 87 of file Handle.cpp.
References RTT::Handle::m_conn.
|
protectedinherited |
This is actually a smart pointer which always points to an existing connection object.
Definition at line 126 of file Handle.hpp.
Referenced by RTT::Handle::connect(), RTT::Handle::connected(), RTT::Handle::disconnect(), RTT::Handle::operator bool(), RTT::Handle::ready(), and RTT::CleanupHandle::~CleanupHandle().
1.8.11