RTT::detail::LocalMethod< FunctionT > Struct Template Reference

A method which executes a local function. More...

#include <rtt/LocalMethod.hpp>

Inheritance diagram for RTT::detail::LocalMethod< FunctionT >:
RTT::detail::Invoker< FunctionT, LocalMethodImpl< FunctionT > >

List of all members.

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
ActionInterfaceclone () const
MethodBase< Signature > * cloneI () const

Detailed Description

template<class FunctionT>
struct RTT::detail::LocalMethod< FunctionT >

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.


Constructor & Destructor Documentation

template<class FunctionT>
RTT::detail::LocalMethod< FunctionT >::LocalMethod (  )  [inline]

Create an empty LocalMethod object.

Use assignment to initialise it.

See also:
method

Definition at line 137 of file LocalMethod.hpp.

template<class FunctionT>
template<class M , class ObjectType >
RTT::detail::LocalMethod< FunctionT >::LocalMethod ( meth,
ObjectType  object 
) [inline]

Construct a LocalMethod from a class member pointer and an object of that class.

Parameters:
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.

template<class FunctionT>
template<class M >
RTT::detail::LocalMethod< FunctionT >::LocalMethod ( meth  )  [inline]

Construct a LocalMethod from a function pointer or function object.

Parameters:
name the name of this method
meth an pointer to a function or function object.

Definition at line 161 of file LocalMethod.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:22:46 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3