Orocos Real-Time Toolkit  2.6.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
RTT::internal::ConnectionBase Class Reference

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 >.

List of all members.

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
SignalBasem_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 *)

Detailed Description

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.


The documentation for this class was generated from the following files: