Orocos Real-Time Toolkit  2.8.3
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction > Class Template Reference

#include <rtt/internal/signal_template.hpp>

Inheritance diagram for RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >:
RTT::internal::ConnectionBase

Public Types

typedef SlotFunction slot_function
 
typedef SlotFunction function_type
 
typedef boost::intrusive_ptr< ConnectionBaseshared_ptr
 

Public Member Functions

OROCOS_SIGNATURE_TYPEDEFS OROCOS_SIGNAL_CONNECTION_N (SignalBase *s, const slot_function &f)
 
void emit (OROCOS_SIGNATURE_PARMS)
 
bool connected ()
 
bool connect ()
 
bool disconnect ()
 
void destroy ()
 

Protected Member Functions

void ref ()
 Increase the reference count by one. More...
 
void deref ()
 Decrease the reference count by one and delete this on zero. More...
 

Protected Attributes

bool mconnected
 
SignalBasem_sig
 
os::AtomicInt refcount
 We require an internal refcount to ease self-addition and removal of this connection. More...
 

Detailed Description

template<class SlotFunction>
class RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >

Definition at line 62 of file signal_template.hpp.

Member Typedef Documentation

template<class SlotFunction >
typedef SlotFunction RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::function_type

Definition at line 66 of file signal_template.hpp.

typedef boost::intrusive_ptr<ConnectionBase> RTT::internal::ConnectionBase::shared_ptr
inherited

Definition at line 108 of file SignalBase.hpp.

template<class SlotFunction >
typedef SlotFunction RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::slot_function

Definition at line 65 of file signal_template.hpp.

Constructor & Destructor Documentation

template<class SlotFunction >
OROCOS_SIGNATURE_TYPEDEFS RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::OROCOS_SIGNAL_CONNECTION_N ( SignalBase s,
const slot_function f 
)
inline

Definition at line 69 of file signal_template.hpp.

Member Function Documentation

bool RTT::internal::ConnectionBase::connect ( )
inherited
bool RTT::internal::ConnectionBase::connected ( )
inlineinherited
void RTT::internal::ConnectionBase::deref ( )
protectedinherited

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

Definition at line 56 of file SignalBase.cpp.

References RTT::os::AtomicInt::dec_and_test(), and RTT::internal::ConnectionBase::refcount.

Referenced by RTT::internal::intrusive_ptr_release().

void RTT::internal::ConnectionBase::destroy ( )
inherited
bool RTT::internal::ConnectionBase::disconnect ( )
inherited
template<class SlotFunction >
void RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit ( OROCOS_SIGNATURE_PARMS  )
inline
void RTT::internal::ConnectionBase::ref ( )
protectedinherited

Increase the reference count by one.

Definition at line 55 of file SignalBase.cpp.

References RTT::os::AtomicInt::inc(), and RTT::internal::ConnectionBase::refcount.

Referenced by RTT::internal::intrusive_ptr_add_ref().

Member Data Documentation

SignalBase* RTT::internal::ConnectionBase::m_sig
protectedinherited
bool RTT::internal::ConnectionBase::mconnected
protectedinherited
os::AtomicInt RTT::internal::ConnectionBase::refcount
protectedinherited

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

Definition at line 92 of file SignalBase.hpp.

Referenced by RTT::internal::ConnectionBase::deref(), and RTT::internal::ConnectionBase::ref().


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