PFUNC  1.0
Public Member Functions | Private Attributes
pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper Struct Reference
Inheritance diagram for pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper:
pfunc::virtual_functor

List of all members.

Public Member Functions

 while_wrapper (const WhileExecutable &func, const ValueType &value)
void operator() (void)

Private Attributes

const WhileExecutable & func
const ValueTypevalue

Detailed Description

template<typename PFuncInstanceType, typename InputIterator, typename WhileExecutable>
struct pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper

A structure to execute the base case of WhileExecutable. We need this structure because PFunc only accepts void operator()(void), but we need void operator()(const ValueType&). This is the wrapper that allows execution by PFunc.


Constructor & Destructor Documentation

template<typename PFuncInstanceType , typename InputIterator , typename WhileExecutable >
pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper::while_wrapper ( const WhileExecutable &  func,
const ValueType value 
) [inline]

Constructor

Parameters:
[in]funcThe func that is executed on value.
[in]valueThe value on which func is to be executed.

Member Function Documentation

template<typename PFuncInstanceType , typename InputIterator , typename WhileExecutable >
void pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper::operator() ( void  ) [inline, virtual]

The wrapper operator() function that invokes func() with value.

Implements pfunc::virtual_functor.


Member Data Documentation

template<typename PFuncInstanceType , typename InputIterator , typename WhileExecutable >
const WhileExecutable& pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper::func [private]
template<typename PFuncInstanceType , typename InputIterator , typename WhileExecutable >
const ValueType& pfunc::parallel_while< PFuncInstanceType, InputIterator, WhileExecutable >::while_wrapper::value [private]

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