OpenRTM-aist  1.2.1
Public Member Functions | Public Attributes | List of all members
coil::TaskFunc< T, F > Class Template Reference

TaskFunc template class. More...

#include <PeriodicTaskBase.h>

Inheritance diagram for coil::TaskFunc< T, F >:
Inheritance graph
[legend]
Collaboration diagram for coil::TaskFunc< T, F >:
Collaboration graph
[legend]

Public Member Functions

 TaskFunc (T *obj, F func)
 Constructor. More...
 
virtual ~TaskFunc ()
 Destructor. More...
 
virtual int operator() ()
 Functor. More...
 
- Public Member Functions inherited from coil::TaskFuncBase
virtual ~TaskFuncBase ()
 Destructor. More...
 

Public Attributes

T * m_obj
 object More...
 
m_func
 function More...
 

Detailed Description

template<typename T, typename F = int (*)()>
class coil::TaskFunc< T, F >

TaskFunc template class.

Constructor & Destructor Documentation

template<typename T , typename F = int (*)()>
coil::TaskFunc< T, F >::TaskFunc ( T *  obj,
func 
)
inline

Constructor.

Constructor

Parameters
objObject.
funcFunction.
template<typename T , typename F = int (*)()>
virtual coil::TaskFunc< T, F >::~TaskFunc ( )
inlinevirtual

Destructor.

Destructor

Member Function Documentation

template<typename T , typename F = int (*)()>
virtual int coil::TaskFunc< T, F >::operator() ( )
inlinevirtual

Functor.

Execute a function of the object.

Implements coil::TaskFuncBase.

Member Data Documentation

template<typename T , typename F = int (*)()>
F coil::TaskFunc< T, F >::m_func

function

template<typename T , typename F = int (*)()>
T* coil::TaskFunc< T, F >::m_obj

object


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