#include <OperationInterfacePartFused.hpp>
Public Member Functions | |
unsigned int | arity () const |
unsigned int | collectArity () const |
virtual std::string | description () const |
virtual std::vector < ArgumentDescription > | getArgumentList () const |
const types::TypeInfo * | getArgumentType (unsigned int arg) const |
const types::TypeInfo * | getCollectType (unsigned int arg) const |
boost::shared_ptr < base::DisposableInterface > | getLocalOperation () const |
virtual std::string | getName () const |
OperationInterfacePartFused (Operation< Signature > *o) | |
base::DataSourceBase::shared_ptr | produce (const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const |
virtual base::DataSourceBase::shared_ptr | produceCollect (const std::vector< base::DataSourceBase::shared_ptr > &args, DataSource< bool >::shared_ptr blocking) const |
virtual base::DataSourceBase::shared_ptr | produceHandle () const |
virtual base::DataSourceBase::shared_ptr | produceSend (const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const |
std::string | resultType () const |
Private Types | |
typedef create_sequence < typename boost::function_types::parameter_types < typename CollectType < Signature >::type >::type > | CollectSequenceFactory |
The factory for converting data sources to C++ types in collect(). This includes SendHandle. | |
typedef boost::function_traits < Signature >::result_type | result_type |
typedef create_sequence < typename boost::function_types::parameter_types < Signature >::type > | SequenceFactory |
The factory for converting data sources to C++ types in call() | |
Private Attributes | |
Operation< Signature > * | op |
OperationInterfacePart implementation that uses boost::fusion to produce items.
Definition at line 95 of file OperationInterfacePartFused.hpp.
typedef create_sequence<typename boost::function_types::parameter_types<typename CollectType<Signature>::type>::type > RTT::internal::OperationInterfacePartFused< Signature >::CollectSequenceFactory [private] |
The factory for converting data sources to C++ types in collect(). This includes SendHandle.
Definition at line 102 of file OperationInterfacePartFused.hpp.
typedef boost::function_traits<Signature>::result_type RTT::internal::OperationInterfacePartFused< Signature >::result_type [private] |
Definition at line 98 of file OperationInterfacePartFused.hpp.
typedef create_sequence<typename boost::function_types::parameter_types<Signature>::type> RTT::internal::OperationInterfacePartFused< Signature >::SequenceFactory [private] |
The factory for converting data sources to C++ types in call()
Definition at line 100 of file OperationInterfacePartFused.hpp.
RTT::internal::OperationInterfacePartFused< Signature >::OperationInterfacePartFused | ( | Operation< Signature > * | o | ) | [inline] |
Definition at line 105 of file OperationInterfacePartFused.hpp.
unsigned int RTT::internal::OperationInterfacePartFused< Signature >::arity | ( | ) | const [inline, virtual] |
Returns the arity (number of arguments) of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 130 of file OperationInterfacePartFused.hpp.
unsigned int RTT::internal::OperationInterfacePartFused< Signature >::collectArity | ( | ) | const [inline, virtual] |
Returns the number of collectable arguments of this operation's function. These consist of the return value and the reference arguments.
Implements RTT::OperationInterfacePart.
Definition at line 139 of file OperationInterfacePartFused.hpp.
virtual std::string RTT::internal::OperationInterfacePartFused< Signature >::description | ( | ) | const [inline, virtual] |
Returns the description of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 114 of file OperationInterfacePartFused.hpp.
virtual std::vector<ArgumentDescription> RTT::internal::OperationInterfacePartFused< Signature >::getArgumentList | ( | ) | const [inline, virtual] |
Get a description of the desired arguments in the ArgumentDescription format.
Implements RTT::OperationInterfacePart.
Definition at line 118 of file OperationInterfacePartFused.hpp.
const types::TypeInfo* RTT::internal::OperationInterfacePartFused< Signature >::getArgumentType | ( | unsigned int | arg | ) | const [inline, virtual] |
Returns the type information of the n'th argument, with argument zero being the return value.
arg | 0: get return value type, 1..arity(): get n'th argument type. |
Implements RTT::OperationInterfacePart.
Definition at line 132 of file OperationInterfacePartFused.hpp.
const types::TypeInfo* RTT::internal::OperationInterfacePartFused< Signature >::getCollectType | ( | unsigned int | arg | ) | const [inline, virtual] |
Returns the type information of the n'th collectable argument. The numbering of arg starts from 1.
arg | 1..collectArity(): get n'th argument type. |
Implements RTT::OperationInterfacePart.
Definition at line 141 of file OperationInterfacePartFused.hpp.
boost::shared_ptr<base::DisposableInterface> RTT::internal::OperationInterfacePartFused< Signature >::getLocalOperation | ( | ) | const [inline, virtual] |
Returns any local operation associated with this operation.
Reimplemented from RTT::OperationInterfacePart.
Definition at line 196 of file OperationInterfacePartFused.hpp.
virtual std::string RTT::internal::OperationInterfacePartFused< Signature >::getName | ( | ) | const [inline, virtual] |
Returns the name of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 110 of file OperationInterfacePartFused.hpp.
base::DataSourceBase::shared_ptr RTT::internal::OperationInterfacePartFused< Signature >::produce | ( | const std::vector< base::DataSourceBase::shared_ptr > & | args, |
ExecutionEngine * | caller | ||
) | const [inline, virtual] |
Create a DataSource for a given callable operation.
args | The arguments for the target object's function. The number of arguments must be identical to this->arity() |
caller | The Engine that will receive notifications when the method has been executed, in case it runs in the owner's thread. Normally, this is the engine of the caller's TaskContext. |
Implements RTT::OperationInterfacePart.
Definition at line 146 of file OperationInterfacePartFused.hpp.
virtual base::DataSourceBase::shared_ptr RTT::internal::OperationInterfacePartFused< Signature >::produceCollect | ( | const std::vector< base::DataSourceBase::shared_ptr > & | args, |
DataSource< bool >::shared_ptr | blocking | ||
) | const [inline, virtual] |
Create a DataSource for collecting the results of a Send.
args | A vector of data sources of which the first element contains a properly initialised sendhandle and the remainder of the elements contains datasources for collecting the return value and reference arguments. The total number of items in args must be collectArity() + 1 |
blocking | Set to true to do a blocking collect, false for a polling version. |
wrong_number_of_args_exception | |
wrong_types_of_args_exception | |
name_not_found_exception | |
no_asynchronous_operation_exception |
Implements RTT::OperationInterfacePart.
Definition at line 166 of file OperationInterfacePartFused.hpp.
virtual base::DataSourceBase::shared_ptr RTT::internal::OperationInterfacePartFused< Signature >::produceHandle | ( | ) | const [inline, virtual] |
Create an empty SendHandle object for this operation.
wrong_number_of_args_exception | |
wrong_types_of_args_exception | |
name_not_found_exception | |
no_asynchronous_operation_exception |
Implements RTT::OperationInterfacePart.
Definition at line 161 of file OperationInterfacePartFused.hpp.
virtual base::DataSourceBase::shared_ptr RTT::internal::OperationInterfacePartFused< Signature >::produceSend | ( | const std::vector< base::DataSourceBase::shared_ptr > & | args, |
ExecutionEngine * | caller | ||
) | const [inline, virtual] |
Create a DataSource for a given send operation.
args | The arguments for the target object's function. The number of arguments must be identical to this->arity() |
caller | The Engine that will receive notifications when the method has been executed. Normally, this is the engine of the caller's TaskContext. |
wrong_number_of_args_exception | |
wrong_types_of_args_exception | |
name_not_found_exception | |
no_asynchronous_operation_exception |
Implements RTT::OperationInterfacePart.
Definition at line 155 of file OperationInterfacePartFused.hpp.
std::string RTT::internal::OperationInterfacePartFused< Signature >::resultType | ( | ) | const [inline, virtual] |
Return the result (return) type of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 125 of file OperationInterfacePartFused.hpp.
Operation<Signature>* RTT::internal::OperationInterfacePartFused< Signature >::op [private] |
Definition at line 103 of file OperationInterfacePartFused.hpp.