#include <FusedFunctorDataSource.hpp>
Public Types | |
typedef SequenceFactory::atype | DataSourceSequence |
typedef boost::function_traits < Signature >::result_type | result_type |
typedef create_sequence < typename boost::function_types::parameter_types < Signature >::type > | SequenceFactory |
typedef boost::shared_ptr < FusedMSignal< Signature > > | shared_ptr |
typedef result_type | value_t |
Public Member Functions | |
FusedMSignal< Signature > ::shared_ptr | cloneRT () const |
void | dispose () |
void | executeAndDispose () |
FusedMSignal (base::ActionInterface *act, const DataSourceSequence &s, ExecutionEngine *subscr) | |
result_type | invoke (typename SequenceFactory::data_type seq) |
void | setArguments (const DataSourceSequence &a1) |
~FusedMSignal () | |
Public Attributes | |
DataSourceSequence | args |
boost::shared_ptr < base::ActionInterface > | mact |
boost::shared_ptr < FusedMSignal< Signature > > | self |
ExecutionEngine * | subscriber |
A Function object that reacts to a Signal by writing the arguments in data sources and calling an action object.
Definition at line 468 of file FusedFunctorDataSource.hpp.
typedef SequenceFactory::atype RTT::internal::FusedMSignal< Signature >::DataSourceSequence |
Definition at line 475 of file FusedFunctorDataSource.hpp.
typedef boost::function_traits<Signature>::result_type RTT::internal::FusedMSignal< Signature >::result_type |
Definition at line 471 of file FusedFunctorDataSource.hpp.
typedef create_sequence< typename boost::function_types::parameter_types<Signature>::type> RTT::internal::FusedMSignal< Signature >::SequenceFactory |
Definition at line 474 of file FusedFunctorDataSource.hpp.
typedef boost::shared_ptr<FusedMSignal<Signature> > RTT::internal::FusedMSignal< Signature >::shared_ptr |
Use this type for shared pointer storage of an DisposableInterface object.
Reimplemented from RTT::base::DisposableInterface.
Definition at line 486 of file FusedFunctorDataSource.hpp.
typedef result_type RTT::internal::FusedMSignal< Signature >::value_t |
Definition at line 472 of file FusedFunctorDataSource.hpp.
RTT::internal::FusedMSignal< Signature >::FusedMSignal | ( | base::ActionInterface * | act, |
const DataSourceSequence & | s, | ||
ExecutionEngine * | subscr | ||
) | [inline] |
Create a new object which takes ownership of the action to be executed upon signal.
act | The action to be executed upon invoke() |
s | The data sources we have to fill in before executing the action |
subscr | The ExecutionEngine that will execute the action in it's thread. If null is given, the action is executed synchronously within invoke() |
Definition at line 495 of file FusedFunctorDataSource.hpp.
RTT::internal::FusedMSignal< Signature >::~FusedMSignal | ( | ) | [inline] |
Definition at line 502 of file FusedFunctorDataSource.hpp.
FusedMSignal<Signature>::shared_ptr RTT::internal::FusedMSignal< Signature >::cloneRT | ( | ) | const [inline] |
Definition at line 550 of file FusedFunctorDataSource.hpp.
void RTT::internal::FusedMSignal< Signature >::dispose | ( | ) | [inline, virtual] |
As long as dispose (or executeAndDispose() ) is not called, this object will not be destroyed.
Implements RTT::base::DisposableInterface.
Definition at line 540 of file FusedFunctorDataSource.hpp.
void RTT::internal::FusedMSignal< Signature >::executeAndDispose | ( | ) | [inline, virtual] |
Execute functionality and free this object. You may no longer use this object after calling this method.
Implements RTT::base::DisposableInterface.
Definition at line 531 of file FusedFunctorDataSource.hpp.
result_type RTT::internal::FusedMSignal< Signature >::invoke | ( | typename SequenceFactory::data_type | seq | ) | [inline] |
A Fused function that takes the arguments of the signal, puts them into the assignable data sources and executes the associated action.
Definition at line 510 of file FusedFunctorDataSource.hpp.
void RTT::internal::FusedMSignal< Signature >::setArguments | ( | const DataSourceSequence & | a1 | ) | [inline] |
Definition at line 545 of file FusedFunctorDataSource.hpp.
DataSourceSequence RTT::internal::FusedMSignal< Signature >::args |
Definition at line 477 of file FusedFunctorDataSource.hpp.
boost::shared_ptr<base::ActionInterface> RTT::internal::FusedMSignal< Signature >::mact |
Definition at line 476 of file FusedFunctorDataSource.hpp.
boost::shared_ptr<FusedMSignal<Signature> > RTT::internal::FusedMSignal< Signature >::self |
Used to refcount self as long as dispose() is not called. This refcount is real-time since both shared_ptr and object were allocated with the rt_allocator class.
Definition at line 484 of file FusedFunctorDataSource.hpp.
ExecutionEngine* RTT::internal::FusedMSignal< Signature >::subscriber |
Definition at line 478 of file FusedFunctorDataSource.hpp.