t_unbounded_alloc< ThrTree, IterBuf > Class Template Reference

Test with an output buffer of unlimited size. More...

List of all members.

Public Member Functions

 t_unbounded_alloc (ThrTree aThrTree, IterBuf aIterBuf)
const string & what (void) const
template<class RangeT>
void operator() (RangeT aRng, VecDataT &aVecDatRef)
rpa::thr_nb_t thrs (void) const
 Number of threads.

Private Attributes

string _what
ThrTree _ThrTree
IterBuf _IterBuf


Detailed Description

template<class ThrTree, class IterBuf>
class t_unbounded_alloc< ThrTree, IterBuf >

Test with an output buffer of unlimited size.


Constructor & Destructor Documentation

template<class ThrTree, class IterBuf>
t_unbounded_alloc< ThrTree, IterBuf >::t_unbounded_alloc ( ThrTree  aThrTree,
IterBuf  aIterBuf 
) [inline]


Member Function Documentation

template<class ThrTree, class IterBuf>
template<class RangeT>
void t_unbounded_alloc< ThrTree, IterBuf >::operator() ( RangeT  aRng,
VecDataT aVecDatRef 
) [inline]

We pass the output argument as a reference because it avoids a useless and slow vector copy.

* 'obuf_iterator' does the same as 'back_inserter', but allows more parallelization. 'make_thread_tree' creates, out of any threads iterator, a 'thread_tree' object which is necessary for parallel execution. No mutex is necessary because the buffers have an unlimited size and will be flushed at the end of the execution.

template<class ThrTree, class IterBuf>
rpa::thr_nb_t t_unbounded_alloc< ThrTree, IterBuf >::thrs ( void   )  const [inline]

Number of threads.

template<class ThrTree, class IterBuf>
const string& t_unbounded_alloc< ThrTree, IterBuf >::what ( void   )  const [inline]


Member Data Documentation

template<class ThrTree, class IterBuf>
IterBuf t_unbounded_alloc< ThrTree, IterBuf >::_IterBuf [private]

template<class ThrTree, class IterBuf>
ThrTree t_unbounded_alloc< ThrTree, IterBuf >::_ThrTree [private]

template<class ThrTree, class IterBuf>
string t_unbounded_alloc< ThrTree, IterBuf >::_what [private]


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