Orocos Real-Time Toolkit  2.9.0
Public Types | Public Member Functions | List of all members
RTT::internal::LocalOperationCaller< FunctionT > Struct Template Reference

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

#include <rtt/internal/LocalOperationCaller.hpp>

Inheritance diagram for RTT::internal::LocalOperationCaller< FunctionT >:
RTT::internal::Invoker< FunctionT, LocalOperationCallerImpl< FunctionT > > RTT::internal::InvokerImpl< int, F, BaseImpl >

Public Types

typedef FunctionT Signature
 
typedef boost::function_traits< Signature >::result_type result_type
 
typedef boost::function_traits< Signaturetraits
 
typedef boost::shared_ptr< LocalOperationCallershared_ptr
 

Public Member Functions

 LocalOperationCaller ()
 Create an empty LocalOperationCaller object. More...
 
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. More...
 
template<class M >
 LocalOperationCaller (M meth, ExecutionEngine *ee, ExecutionEngine *caller, ExecutionThread et=ClientThread)
 Construct a LocalOperationCaller from a function pointer or function object. More...
 
boost::function< SignaturegetOperationCallerFunction () const
 
base::OperationCallerBase< Signature > * cloneI (ExecutionEngine *caller) const
 
LocalOperationCallerImpl< Signature >::shared_ptr cloneRT () const
 

Detailed Description

template<class FunctionT>
struct RTT::internal::LocalOperationCaller< FunctionT >

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 640 of file LocalOperationCaller.hpp.

Member Typedef Documentation

template<class FunctionT>
typedef boost::function_traits<Signature>::result_type RTT::internal::LocalOperationCaller< FunctionT >::result_type

Definition at line 644 of file LocalOperationCaller.hpp.

template<class FunctionT>
typedef boost::shared_ptr<LocalOperationCaller> RTT::internal::LocalOperationCaller< FunctionT >::shared_ptr

Definition at line 647 of file LocalOperationCaller.hpp.

template<class FunctionT>
typedef FunctionT RTT::internal::LocalOperationCaller< FunctionT >::Signature

Definition at line 643 of file LocalOperationCaller.hpp.

template<class FunctionT>
typedef boost::function_traits<Signature> RTT::internal::LocalOperationCaller< FunctionT >::traits

Definition at line 645 of file LocalOperationCaller.hpp.

Constructor & Destructor Documentation

template<class FunctionT>
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller ( )
inline

Create an empty LocalOperationCaller object.

Use assignment to initialise it.

See also
method

Definition at line 654 of file LocalOperationCaller.hpp.

template<class FunctionT>
template<class M , class ObjectType >
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller ( 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.

Parameters
methA pointer to a class member function
objectAn object of the class which has meth as member function.
eeThe executing engine. This is the owner engine or the GlobalEngine. If null, will be the GlobalEngine.
callerThe caller engine. From which component we call this Operation.

Definition at line 667 of file LocalOperationCaller.hpp.

template<class FunctionT>
template<class M >
RTT::internal::LocalOperationCaller< FunctionT >::LocalOperationCaller ( meth,
ExecutionEngine ee,
ExecutionEngine caller,
ExecutionThread  et = ClientThread 
)
inline

Construct a LocalOperationCaller from a function pointer or function object.

Parameters
methan pointer to a function or function object.

Definition at line 681 of file LocalOperationCaller.hpp.

Member Function Documentation

template<class FunctionT>
base::OperationCallerBase<Signature>* RTT::internal::LocalOperationCaller< FunctionT >::cloneI ( ExecutionEngine caller) const
inline

Definition at line 699 of file LocalOperationCaller.hpp.

template<class FunctionT>
LocalOperationCallerImpl<Signature>::shared_ptr RTT::internal::LocalOperationCaller< FunctionT >::cloneRT ( ) const
inline

Definition at line 706 of file LocalOperationCaller.hpp.

template<class FunctionT>
boost::function<Signature> RTT::internal::LocalOperationCaller< FunctionT >::getOperationCallerFunction ( ) const
inline

Definition at line 689 of file LocalOperationCaller.hpp.


The documentation for this struct was generated from the following file: