Orocos Real-Time Toolkit
2.6.0
|
A connection 'memorises' the connection between an event and an event handler function. More...
#include <rtt/internal/SignalBase.hpp>
Inherited by RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >.
Public Types | |
typedef boost::intrusive_ptr < ConnectionBase > | shared_ptr |
Public Member Functions | |
ConnectionBase (SignalBase *sig) | |
bool | connected () |
bool | connect () |
bool | disconnect () |
void | destroy () |
Protected Member Functions | |
void | ref () |
Increase the reference count by one. | |
void | deref () |
Decrease the reference count by one and delete this on zero. | |
Protected Attributes | |
bool | mconnected |
SignalBase * | m_sig |
os::AtomicInt | refcount |
We require an internal refcount to ease self-addition and removal of this connection. | |
Friends | |
RTT_API friend void | intrusive_ptr_add_ref (ConnectionBase *) |
RTT_API friend void | intrusive_ptr_release (ConnectionBase *) |
A connection 'memorises' the connection between an event and an event handler function.
It manages connection and destruction of a signal/slot pair. It is the central object which knows about one signal and its slot (the latter in its derived classes).
Definition at line 80 of file SignalBase.hpp.