t_bounded_alloc< ThrTree, IterBuf > Class Template Reference

List of all members.

Public Member Functions

 t_bounded_alloc (ThrTree aThrTree, size_t aBufSz, 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
size_t _BufSz
IterBuf _IterBuf

template<class ThrTree, class IterBuf>
class t_bounded_alloc< ThrTree, IterBuf >


Constructor & Destructor Documentation

template<class ThrTree, class IterBuf>
t_bounded_alloc< ThrTree, IterBuf >::t_bounded_alloc ( ThrTree  aThrTree,
size_t  aBufSz,
IterBuf  aIterBuf 
) [inline]


Member Function Documentation

template<class ThrTree, class IterBuf>
template<class RangeT>
void t_bounded_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.

* 'buffer_back_inserter' does the same is '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. A mutex is necessary because buffers have a limited size and will be periodically flushed into the output iterator.

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

Number of threads.

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


Member Data Documentation

template<class ThrTree, class IterBuf>
size_t t_bounded_alloc< ThrTree, IterBuf >::_BufSz [private]

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

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

template<class ThrTree, class IterBuf>
string t_bounded_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