$search
#include <SignalBase.hpp>
Public Types | |
typedef boost::intrusive_ptr < ConnectionBase > | shared_ptr |
Public Member Functions | |
bool | connect () |
bool | connected () |
ConnectionBase (SignalBase *sig) | |
void | destroy () |
bool | disconnect () |
Protected Member Functions | |
void | deref () |
void | ref () |
virtual | ~ConnectionBase () |
Protected Attributes | |
SignalBase * | m_sig |
bool | mconnected |
os::AtomicInt | refcount |
Private Member Functions | |
ConnectionBase (const ConnectionBase &) | |
const ConnectionBase & | operator= (const ConnectionBase &) |
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.
RTT::internal::ConnectionBase::~ConnectionBase | ( | ) | [protected, virtual] |
Definition at line 64 of file SignalBase.cpp.
RTT::internal::ConnectionBase::ConnectionBase | ( | SignalBase * | sig | ) |
Definition at line 58 of file SignalBase.cpp.
RTT::internal::ConnectionBase::ConnectionBase | ( | const ConnectionBase & | ) | [private] |
bool RTT::internal::ConnectionBase::connect | ( | ) |
Definition at line 67 of file SignalBase.cpp.
bool RTT::internal::ConnectionBase::connected | ( | ) | [inline] |
Definition at line 110 of file SignalBase.hpp.
void RTT::internal::ConnectionBase::deref | ( | ) | [protected] |
Decrease the reference count by one and delete this on zero.
Definition at line 56 of file SignalBase.cpp.
void RTT::internal::ConnectionBase::destroy | ( | ) |
Definition at line 77 of file SignalBase.cpp.
bool RTT::internal::ConnectionBase::disconnect | ( | ) |
Definition at line 72 of file SignalBase.cpp.
const ConnectionBase& RTT::internal::ConnectionBase::operator= | ( | const ConnectionBase & | ) | [private] |
void RTT::internal::ConnectionBase::ref | ( | ) | [protected] |
Increase the reference count by one.
Definition at line 55 of file SignalBase.cpp.
RTT_API friend void intrusive_ptr_add_ref | ( | ConnectionBase * | ) | [friend] |
RTT_API friend void intrusive_ptr_release | ( | ConnectionBase * | ) | [friend] |
SignalBase* RTT::internal::ConnectionBase::m_sig [protected] |
Definition at line 86 of file SignalBase.hpp.
bool RTT::internal::ConnectionBase::mconnected [protected] |
Definition at line 85 of file SignalBase.hpp.
os::AtomicInt RTT::internal::ConnectionBase::refcount [protected] |
We require an internal refcount to ease self-addition and removal of this connection.
Definition at line 92 of file SignalBase.hpp.