Cambridge SMT System
ucam::util::TaskFunctor< Data > Class Template Reference

Simple functor that accepts an interface and pointer to the data object in which it will have to run The actual task running is delayed to the call of the (). This is useful e.g. for task dispatching in the threadpool pattern. This functor deletes data and task as soon as it is guaranteed to have been completely executed. More...

#include <taskinterface.hpp>

Public Member Functions

 TaskFunctor ()
 
 TaskFunctor (TaskInterface< Data > *ti, Data *d)
 
 TaskFunctor (TaskFunctor< Data > const &tf)
 
void operator() ()
 

Detailed Description

template<class Data>
class ucam::util::TaskFunctor< Data >

Simple functor that accepts an interface and pointer to the data object in which it will have to run The actual task running is delayed to the call of the (). This is useful e.g. for task dispatching in the threadpool pattern. This functor deletes data and task as soon as it is guaranteed to have been completely executed.

Definition at line 113 of file taskinterface.hpp.

Constructor & Destructor Documentation

template<class Data>
ucam::util::TaskFunctor< Data >::TaskFunctor ( )
inline

Definition at line 118 of file taskinterface.hpp.

template<class Data>
ucam::util::TaskFunctor< Data >::TaskFunctor ( TaskInterface< Data > *  ti,
Data *  d 
)
inline

Definition at line 122 of file taskinterface.hpp.

template<class Data>
ucam::util::TaskFunctor< Data >::TaskFunctor ( TaskFunctor< Data > const &  tf)
inline

Definition at line 127 of file taskinterface.hpp.

Member Function Documentation

template<class Data>
void ucam::util::TaskFunctor< Data >::operator() ( void  )
inline

Definition at line 132 of file taskinterface.hpp.

Here is the call graph for this function:


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