Orocos Real-Time Toolkit
2.8.3
|
A connection 'memorises' the connection between an event and an event handler function. More...
#include <rtt/internal/SignalBase.hpp>
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. More... | |
void | deref () |
Decrease the reference count by one and delete this on zero. More... | |
virtual | ~ConnectionBase () |
Protected Attributes | |
bool | mconnected |
SignalBase * | m_sig |
os::AtomicInt | refcount |
We require an internal refcount to ease self-addition and removal of this connection. More... | |
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.
typedef boost::intrusive_ptr<ConnectionBase> RTT::internal::ConnectionBase::shared_ptr |
Definition at line 108 of file SignalBase.hpp.
|
protectedvirtual |
Definition at line 64 of file SignalBase.cpp.
RTT::internal::ConnectionBase::ConnectionBase | ( | SignalBase * | sig | ) |
Definition at line 58 of file SignalBase.cpp.
bool RTT::internal::ConnectionBase::connect | ( | ) |
Definition at line 67 of file SignalBase.cpp.
References m_sig, and mconnected.
|
inline |
Definition at line 110 of file SignalBase.hpp.
References RTT::internal::intrusive_ptr_add_ref(), RTT::internal::intrusive_ptr_release(), and RTT_API.
|
protected |
Decrease the reference count by one and delete this on zero.
Definition at line 56 of file SignalBase.cpp.
References RTT::os::AtomicInt::dec_and_test(), and refcount.
Referenced by RTT::internal::intrusive_ptr_release().
void RTT::internal::ConnectionBase::destroy | ( | ) |
Definition at line 77 of file SignalBase.cpp.
References RTT::internal::SignalBase::conn_destroy(), m_sig, and mconnected.
bool RTT::internal::ConnectionBase::disconnect | ( | ) |
Definition at line 72 of file SignalBase.cpp.
References m_sig, and mconnected.
|
protected |
Increase the reference count by one.
Definition at line 55 of file SignalBase.cpp.
References RTT::os::AtomicInt::inc(), and refcount.
Referenced by RTT::internal::intrusive_ptr_add_ref().
|
friend |
Definition at line 52 of file SignalBase.cpp.
|
friend |
Definition at line 53 of file SignalBase.cpp.
|
protected |
Definition at line 86 of file SignalBase.hpp.
Referenced by connect(), destroy(), and disconnect().
|
protected |
Definition at line 85 of file SignalBase.hpp.
Referenced by connect(), destroy(), disconnect(), and RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit().
|
protected |
We require an internal refcount to ease self-addition and removal of this connection.
Definition at line 92 of file SignalBase.hpp.