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

#include <SignalBase.hpp>

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

List of all members.

Public Types

typedef ConnectionBase::shared_ptr connection_t
typedef ListLockFree
< connection_t
connections_list

Public Member Functions

virtual int arity () const =0
void destroy ()
void disconnect ()
void reserve (size_t conns)
virtual ~SignalBase ()

Protected Member Functions

void conn_connect (connection_t conn)
void conn_destroy (connection_t conn)
void conn_disconnect (connection_t conn)
void conn_setup (connection_t conn)
 SignalBase ()

Protected Attributes

bool emitting
connections_list mconnections

Private Member Functions

const SignalBaseoperator= (const SignalBase &)
 SignalBase (const SignalBase &)

Friends

class ConnectionBase

Detailed Description

The base signal class which stores connection objects. It implements real-time management of connections, such that connection/disconnetion of a handler is always thread-safe and real-time.

Definition at line 128 of file SignalBase.hpp.


Member Typedef Documentation

Definition at line 131 of file SignalBase.hpp.

Definition at line 133 of file SignalBase.hpp.


Constructor & Destructor Documentation

Definition at line 210 of file SignalBase.cpp.

Deletes this Signal and will destroy all connections and handles of this object. It is not necessary to call disconnect() or disconnect() prior to destroying a SignalBase.

Definition at line 229 of file SignalBase.cpp.


Member Function Documentation

virtual int RTT::internal::SignalBase::arity ( ) const [pure virtual]

Returns the arity (the number of arguments) of this signal.

Implemented in RTT::internal::OROCOS_SIGNAL_N< R, SlotFunctionT >.

Definition at line 103 of file SignalBase.cpp.

Definition at line 130 of file SignalBase.cpp.

Definition at line 146 of file SignalBase.cpp.

Definition at line 88 of file SignalBase.cpp.

Destroys all connections. This will destroy all connections of this Event. All Handles will be disconnected and unable to reconnect.

Definition at line 252 of file SignalBase.cpp.

Disconnects all connections. All Handles will be disconnected, but able to reconnect.

Definition at line 241 of file SignalBase.cpp.

const SignalBase& RTT::internal::SignalBase::operator= ( const SignalBase ) [private]
void RTT::internal::SignalBase::reserve ( size_t  conns)

Reserves memory for a number of connections. Use this method to efficiently reserve memory for possible connections. If not used, the event will reserve memory in batch, depending upon demand. This does not impair/influence real-time performance, only memory efficiency.

Parameters:
connsThe number of connections to reserve memory for.

Definition at line 268 of file SignalBase.cpp.


Friends And Related Function Documentation

friend class ConnectionBase [friend]

Definition at line 144 of file SignalBase.hpp.


Member Data Documentation

Definition at line 171 of file SignalBase.hpp.

Definition at line 154 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:59