Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
RTT::internal::ConnectionBase Class Reference

#include <SignalBase.hpp>

Inheritance diagram for RTT::internal::ConnectionBase:
Inheritance graph
[legend]

List of all members.

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

SignalBasem_sig
bool mconnected
os::AtomicInt refcount

Private Member Functions

 ConnectionBase (const ConnectionBase &)
const ConnectionBaseoperator= (const ConnectionBase &)

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.


Member Typedef Documentation

Definition at line 108 of file SignalBase.hpp.


Constructor & Destructor Documentation

Definition at line 64 of file SignalBase.cpp.

Definition at line 58 of file SignalBase.cpp.


Member Function Documentation

Definition at line 67 of file SignalBase.cpp.

Definition at line 110 of file SignalBase.hpp.

Decrease the reference count by one and delete this on zero.

Definition at line 56 of file SignalBase.cpp.

Definition at line 77 of file SignalBase.cpp.

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.


Friends And Related Function Documentation

RTT_API friend void intrusive_ptr_add_ref ( ConnectionBase ) [friend]

Definition at line 52 of file SignalBase.cpp.

RTT_API friend void intrusive_ptr_release ( ConnectionBase ) [friend]

Definition at line 53 of file SignalBase.cpp.


Member Data Documentation

Definition at line 86 of file SignalBase.hpp.

Definition at line 85 of file SignalBase.hpp.

We require an internal refcount to ease self-addition and removal of this connection.

Definition at line 92 of file SignalBase.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Mon Oct 6 2014 03:13:58