Orocos Real-Time Toolkit
2.9.0
|
#include <rtt/internal/signal_template.hpp>
Public Types | |
typedef SlotFunctionT | slot_function_type |
typedef OROCOS_SIGNAL_CONNECTION_N< SlotFunctionT > | connection_impl |
typedef R | result_type |
typedef ConnectionBase::shared_ptr | connection_t |
typedef ListLockFree< connection_t > | connections_list |
Public Member Functions | |
OROCOS_SIGNATURE_ARG_TYPES | OROCOS_SIGNAL_N () |
Handle | connect (const slot_function_type &f) |
Handle | setup (const slot_function_type &f) |
R | emit (OROCOS_SIGNATURE_PARMS) |
R | operator() (OROCOS_SIGNATURE_PARMS) |
R | fire (OROCOS_SIGNATURE_PARMS) |
virtual int | arity () const |
Returns the arity (the number of arguments) of this signal. More... | |
void | disconnect () |
Disconnects all connections. More... | |
void | destroy () |
Destroys all connections. More... | |
void | reserve (size_t conns) |
Reserves memory for a number of connections. More... | |
Protected Member Functions | |
void | conn_setup (connection_t conn) |
void | conn_connect (connection_t conn) |
void | conn_disconnect (connection_t conn) |
void | conn_destroy (connection_t conn) |
Protected Attributes | |
connections_list | mconnections |
bool | emitting |
Definition at line 85 of file signal_template.hpp.
typedef OROCOS_SIGNAL_CONNECTION_N<SlotFunctionT> RTT::internal::OROCOS_SIGNAL_N< R, SlotFunctionT >::connection_impl |
Definition at line 92 of file signal_template.hpp.
|
inherited |
Definition at line 131 of file SignalBase.hpp.
|
inherited |
Definition at line 133 of file SignalBase.hpp.
typedef R RTT::internal::OROCOS_SIGNAL_N< R, SlotFunctionT >::result_type |
Definition at line 94 of file signal_template.hpp.
typedef SlotFunctionT RTT::internal::OROCOS_SIGNAL_N< R, SlotFunctionT >::slot_function_type |
Definition at line 91 of file signal_template.hpp.
|
inline |
Definition at line 105 of file signal_template.hpp.
|
inlinevirtual |
Returns the arity (the number of arguments) of this signal.
Implements RTT::internal::SignalBase.
Definition at line 178 of file signal_template.hpp.
References OROCOS_SIGNATURE_NUM_ARGS.
|
protectedinherited |
Definition at line 103 of file SignalBase.cpp.
|
protectedinherited |
Definition at line 130 of file SignalBase.cpp.
Referenced by RTT::internal::ConnectionBase::destroy().
|
protectedinherited |
Definition at line 146 of file SignalBase.cpp.
|
protectedinherited |
Definition at line 88 of file SignalBase.cpp.
|
inline |
Definition at line 109 of file signal_template.hpp.
References RTT::Handle::connect().
|
inherited |
Destroys all connections.
This will destroy all connections of this Event. All Handles will be disconnected and unable to reconnect.
Definition at line 251 of file SignalBase.cpp.
References RTT::internal::ListLockFree< T >::empty(), RTT::internal::ListLockFree< T >::erase(), RTT::internal::ListLockFree< T >::front(), and RTT::internal::SignalBase::mconnections.
Referenced by RTT::internal::SignalBase::~SignalBase().
|
inherited |
Disconnects all connections.
All Handles will be disconnected, but able to reconnect.
Definition at line 240 of file SignalBase.cpp.
References RTT::internal::ListLockFree< T >::apply(), and RTT::internal::SignalBase::mconnections.
|
inline |
Definition at line 135 of file signal_template.hpp.
References RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit(), RTT::internal::NA< T >::na(), OROCOS_SIGNATURE_ARGS, and OROCOS_SIGNATURE_NUM_ARGS.
|
inline |
Definition at line 173 of file signal_template.hpp.
References RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit(), and OROCOS_SIGNATURE_ARGS.
|
inline |
Definition at line 168 of file signal_template.hpp.
References RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit(), and OROCOS_SIGNATURE_ARGS.
|
inherited |
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.
conns | The number of connections to reserve memory for. |
Definition at line 267 of file SignalBase.cpp.
References RTT::internal::SignalBase::mconnections, and RTT::internal::ListLockFree< T >::reserve().
|
inline |
Definition at line 116 of file signal_template.hpp.
References RTT::internal::OROCOS_SIGNAL_CONNECTION_N< SlotFunction >::emit(), OROCOS_SIGNATURE_ARGS, OROCOS_SIGNATURE_NUM_ARGS, and OROCOS_SIGNATURE_PARMS.
|
protectedinherited |
Definition at line 171 of file SignalBase.hpp.
|
protectedinherited |
Definition at line 154 of file SignalBase.hpp.
Referenced by RTT::internal::SignalBase::destroy(), RTT::internal::SignalBase::disconnect(), RTT::internal::SignalBase::reserve(), and RTT::internal::SignalBase::SignalBase().