#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.
|
protectedvirtual |
Definition at line 64 of file SignalBase.cpp.
RTT::internal::ConnectionBase::ConnectionBase | ( | SignalBase * | sig | ) |
Definition at line 58 of file SignalBase.cpp.
|
private |
bool RTT::internal::ConnectionBase::connect | ( | ) |
Definition at line 67 of file SignalBase.cpp.
|
inline |
Definition at line 110 of file SignalBase.hpp.
|
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.
|
private |
|
protected |
Increase the reference count by one.
Definition at line 55 of file SignalBase.cpp.
|
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.
|
protected |
Definition at line 85 of file SignalBase.hpp.
|
protected |
We require an internal refcount to ease self-addition and removal of this connection.
Definition at line 92 of file SignalBase.hpp.