#include <FunctionFactory.hpp>

Private Member Functions | |
| base::DataSourceBase::shared_ptr | produceHelper (const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller, bool issend) const |
Private Attributes | |
| ProgramInterfacePtr | func |
| ExecutionEngine * | proc |
A Factory which delivers operations which execute a FunctionGraph in an engine..
Definition at line 57 of file FunctionFactory.hpp.
| RTT::FunctionFactory::FunctionFactory | ( | ProgramInterfacePtr | func, |
| ExecutionEngine * | procs | ||
| ) |
Definition at line 108 of file FunctionFactory.cpp.
|
virtual |
Returns the arity (number of arguments) of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 133 of file FunctionFactory.cpp.
|
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 138 of file FunctionFactory.cpp.
|
virtual |
Returns the description of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 119 of file FunctionFactory.cpp.
|
virtual |
Get a description of the desired arguments in the ArgumentDescription format.
Implements RTT::OperationInterfacePart.
Definition at line 123 of file FunctionFactory.cpp.
|
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 143 of file FunctionFactory.cpp.
|
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 157 of file FunctionFactory.cpp.
|
virtual |
Returns the name of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 115 of file FunctionFactory.cpp.
|
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 163 of file FunctionFactory.cpp.
|
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 241 of file FunctionFactory.cpp.
|
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 234 of file FunctionFactory.cpp.
|
private |
Definition at line 171 of file FunctionFactory.cpp.
|
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 237 of file FunctionFactory.cpp.
|
virtual |
Return the result (return) type of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 111 of file FunctionFactory.cpp.
|
private |
Definition at line 60 of file FunctionFactory.hpp.
|
private |
Definition at line 61 of file FunctionFactory.hpp.