Orocos Real-Time Toolkit
2.8.3
|
OperationInterfacePart implementation that only provides synchronous access to an operation. More...
#include <rtt/internal/OperationInterfacePartFused.hpp>
Public Member Functions | |
SynchronousOperationInterfacePartFused (Operation< Signature > *o) | |
virtual base::DataSourceBase::shared_ptr | produceSend (const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const |
Create a DataSource for a given send operation. More... | |
virtual base::DataSourceBase::shared_ptr | produceCollect (const std::vector< base::DataSourceBase::shared_ptr > &args, internal::DataSource< bool >::shared_ptr blocking) const |
Create a DataSource for collecting the results of a Send. More... | |
virtual base::DataSourceBase::shared_ptr | produceHandle () const |
Create an empty SendHandle object for this operation. More... | |
virtual std::string | getName () const |
Returns the name of this operation. More... | |
virtual std::string | description () const |
Returns the description of this operation. More... | |
virtual std::vector< ArgumentDescription > | getArgumentList () const |
Get a description of the desired arguments in the ArgumentDescription format. More... | |
std::string | resultType () const |
Return the result (return) type of this operation. More... | |
unsigned int | arity () const |
Returns the arity (number of arguments) of this operation. More... | |
const types::TypeInfo * | getArgumentType (unsigned int arg) const |
Returns the type information of the n'th argument, with argument zero being the return value. More... | |
unsigned int | collectArity () const |
Returns the number of collectable arguments of this operation's function. More... | |
const types::TypeInfo * | getCollectType (unsigned int arg) const |
Returns the type information of the n'th collectable argument. More... | |
base::DataSourceBase::shared_ptr | produce (const std::vector< base::DataSourceBase::shared_ptr > &args, ExecutionEngine *caller) const |
Create a DataSource for a given callable operation. More... | |
boost::shared_ptr< base::DisposableInterface > | getLocalOperation () const |
Returns any local operation associated with this operation. More... | |
OperationInterfacePart implementation that only provides synchronous access to an operation.
Only produce() can be called, the others will throw a no_asynchronous_operation_exception.
Definition at line 251 of file OperationInterfacePartFused.hpp.
|
inline |
Definition at line 261 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
Returns the arity (number of arguments) of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 296 of file OperationInterfacePartFused.hpp.
Referenced by RTT::internal::SynchronousOperationInterfacePartFused< Signature >::getArgumentList(), and RTT::internal::SynchronousOperationInterfacePartFused< Signature >::produce().
|
inlinevirtual |
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 305 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
Returns the description of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 280 of file OperationInterfacePartFused.hpp.
References RTT::internal::OperationInterfacePartHelper::description().
|
inlinevirtual |
Get a description of the desired arguments in the ArgumentDescription format.
Implements RTT::OperationInterfacePart.
Definition at line 284 of file OperationInterfacePartFused.hpp.
References RTT::internal::SynchronousOperationInterfacePartFused< Signature >::arity(), and RTT::internal::OperationInterfacePartHelper::getArgumentList().
|
inlinevirtual |
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 298 of file OperationInterfacePartFused.hpp.
References RTT::internal::DataSourceTypeInfo< T >::getTypeInfo().
|
inlinevirtual |
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 307 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
Returns any local operation associated with this operation.
Reimplemented from RTT::OperationInterfacePart.
Definition at line 321 of file OperationInterfacePartFused.hpp.
References RTT::Operation< Signature >::getImplementation().
|
inlinevirtual |
Returns the name of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 277 of file OperationInterfacePartFused.hpp.
References RTT::base::OperationBase::getName().
|
inlinevirtual |
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 312 of file OperationInterfacePartFused.hpp.
References RTT::internal::SynchronousOperationInterfacePartFused< Signature >::arity(), and RTT::Operation< Signature >::getOperationCaller().
|
inlinevirtual |
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 268 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
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 274 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
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 266 of file OperationInterfacePartFused.hpp.
|
inlinevirtual |
Return the result (return) type of this operation.
Implements RTT::OperationInterfacePart.
Definition at line 291 of file OperationInterfacePartFused.hpp.
References RTT::internal::DataSourceTypeInfo< T >::getQualifier(), and RTT::internal::DataSourceTypeInfo< T >::getType().