A method which executes a local function. More...
#include <rtt/LocalMethod.hpp>
Public Types | |
typedef FunctionT | Signature |
typedef boost::function_traits < Signature >::result_type | result_type |
typedef boost::function_traits < Signature > | traits |
Public Member Functions | |
LocalMethod () | |
Create an empty LocalMethod object. | |
template<class M , class ObjectType > | |
LocalMethod (M meth, ObjectType object) | |
Construct a LocalMethod from a class member pointer and an object of that class. | |
template<class M > | |
LocalMethod (M meth) | |
Construct a LocalMethod from a function pointer or function object. | |
boost::function< Signature > | getMethodFunction () const |
ActionInterface * | clone () const |
MethodBase< Signature > * | cloneI () const |
A method which executes a local function.
Usage:
LocalMethod<double(int, double)> mymeth( &Class::foo, &c);
double result = mymeth( 3, 1.9);
Definition at line 125 of file LocalMethod.hpp.
RTT::detail::LocalMethod< FunctionT >::LocalMethod | ( | ) | [inline] |
Create an empty LocalMethod object.
Use assignment to initialise it.
Definition at line 137 of file LocalMethod.hpp.
RTT::detail::LocalMethod< FunctionT >::LocalMethod | ( | M | meth, | |
ObjectType | object | |||
) | [inline] |
Construct a LocalMethod 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 149 of file LocalMethod.hpp.
RTT::detail::LocalMethod< FunctionT >::LocalMethod | ( | M | meth | ) | [inline] |
Construct a LocalMethod 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 161 of file LocalMethod.hpp.