rpa::accumulate_args< RngIn, RetType, BinOp > Struct Template Reference

For storing the arguments of 'accumulate'. More...

#include <accumulate.h>

Inheritance diagram for rpa::accumulate_args< RngIn, RetType, BinOp >:

rpa::accumulate_t< Range, Type, BinOp > List of all members.

Public Types

typedef RetType result_type

Public Member Functions

 accumulate_args (const RngIn &aRngIn, const result_type &aInit, const BinOp &aFunc)
const result_typeexecute (void)
 Sequential execution using STL original algorithm.
void reduce (const result_type &aB)
 Reduction of the execution of several sub-threads, using the user's functor.
const result_typeresult (void) const
template<class Thr>
threadify_t< BinOp, Thr
>::functor_type 
threadize (Thr &refThr)

Public Attributes

RngIn _seqIn
BinOp _Func
RetType _Resu

Detailed Description

template<class RngIn, class RetType, class BinOp>
struct rpa::accumulate_args< RngIn, RetType, BinOp >

For storing the arguments of 'accumulate'.


Member Typedef Documentation

template<class RngIn, class RetType, class BinOp>
typedef RetType rpa::accumulate_args< RngIn, RetType, BinOp >::result_type

Reimplemented in rpa::accumulate_t< Range, Type, BinOp >.


Constructor & Destructor Documentation

template<class RngIn, class RetType, class BinOp>
rpa::accumulate_args< RngIn, RetType, BinOp >::accumulate_args ( const RngIn &  aRngIn,
const result_type aInit,
const BinOp &  aFunc 
) [inline]


Member Function Documentation

template<class RngIn, class RetType, class BinOp>
const result_type& rpa::accumulate_args< RngIn, RetType, BinOp >::execute ( void   )  [inline]

Sequential execution using STL original algorithm.

template<class RngIn, class RetType, class BinOp>
void rpa::accumulate_args< RngIn, RetType, BinOp >::reduce ( const result_type aB  )  [inline]

Reduction of the execution of several sub-threads, using the user's functor.

template<class RngIn, class RetType, class BinOp>
const result_type& rpa::accumulate_args< RngIn, RetType, BinOp >::result ( void   )  const [inline]

template<class RngIn, class RetType, class BinOp>
template<class Thr>
threadify_t< BinOp,Thr >::functor_type rpa::accumulate_args< RngIn, RetType, BinOp >::threadize ( Thr &  refThr  )  [inline]


Member Data Documentation

template<class RngIn, class RetType, class BinOp>
BinOp rpa::accumulate_args< RngIn, RetType, BinOp >::_Func

template<class RngIn, class RetType, class BinOp>
RetType rpa::accumulate_args< RngIn, RetType, BinOp >::_Resu

The result is stored here after execution. So, it can later be retrieved if all the algorithm is executed in a sub-thread.

template<class RngIn, class RetType, class BinOp>
RngIn rpa::accumulate_args< RngIn, RetType, BinOp >::_seqIn


The documentation for this struct was generated from the following file:
Generated on Tue Sep 25 10:20:32 2007 for rpa by  doxygen 1.4.7