Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
RTT::internal::ConnectionBase Class Reference

#include <SignalBase.hpp>

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

Public Types

typedef boost::intrusive_ptr< ConnectionBaseshared_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

RTT::internal::ConnectionBase::~ConnectionBase ( )
protectedvirtual

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

Member Function Documentation

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.

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

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.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:43