Orocos Real-Time Toolkit
2.5.0
|
A method which executes a local function. More...
#include <rtt/internal/LocalOperationCaller.hpp>
Public Types | |
typedef FunctionT | Signature |
typedef boost::function_traits < Signature >::result_type | result_type |
typedef boost::function_traits < Signature > | traits |
typedef boost::shared_ptr < LocalOperationCaller > | shared_ptr |
Public Member Functions | |
LocalOperationCaller () | |
Create an empty LocalOperationCaller object. | |
template<class M , class ObjectType > | |
LocalOperationCaller (M meth, ObjectType object, ExecutionEngine *ee, ExecutionEngine *caller, ExecutionThread et=ClientThread) | |
Construct a LocalOperationCaller from a class member pointer and an object of that class. | |
template<class M > | |
LocalOperationCaller (M meth, ExecutionEngine *ee, ExecutionEngine *caller, ExecutionThread et=ClientThread) | |
Construct a LocalOperationCaller from a function pointer or function object. | |
boost::function< Signature > | getOperationCallerFunction () const |
base::OperationCallerBase < Signature > * | cloneI (ExecutionEngine *caller) const |
LocalOperationCallerImpl < Signature >::shared_ptr | cloneRT () const |
A method which executes a local function.
Usage:
LocalOperationCaller<double(int, double)> mymeth( &Class::foo, &c);
double result = mymeth( 3, 1.9);
Definition at line 606 of file LocalOperationCaller.hpp.
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller | ( | ) | [inline] |
Create an empty LocalOperationCaller object.
Use assignment to initialise it.
Definition at line 620 of file LocalOperationCaller.hpp.
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller | ( | M | meth, |
ObjectType | object, | ||
ExecutionEngine * | ee, | ||
ExecutionEngine * | caller, | ||
ExecutionThread | et = ClientThread |
||
) | [inline] |
Construct a LocalOperationCaller from a class member pointer and an object of that class.
name | The name of this method |
meth | A pointer to a class member function |
object | An object of the class which has meth as member function. |
Definition at line 632 of file LocalOperationCaller.hpp.
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller | ( | M | meth, |
ExecutionEngine * | ee, | ||
ExecutionEngine * | caller, | ||
ExecutionThread | et = ClientThread |
||
) | [inline] |
Construct a LocalOperationCaller from a function pointer or function object.
name | the name of this method |
meth | an pointer to a function or function object. |
Definition at line 649 of file LocalOperationCaller.hpp.