tst_bounded_alloc< ThrTree, IterBuf > Class Template Reference

In t12, tests with limited buffers, with buffers allocator. More...

List of all members.

Public Member Functions

 tst_bounded_alloc (const ThrTree &aThrTree, size_t aBufSz, IterBuf aIterBuf)
const char * what (void) const
template<class RangeT>
void operator() (const RangeT &aRng, ObjT::CounterT expectedCount, ListObjT &aLstOfObjs)
rpa::thr_nb_t thrs (void) const
 Number of threads.

Private Attributes

ThrTree _ThrTree
size_t _BufSz
IterBuf _IterBuf


Detailed Description

template<class ThrTree, class IterBuf>
class tst_bounded_alloc< ThrTree, IterBuf >

In t12, tests with limited buffers, with buffers allocator.


Constructor & Destructor Documentation

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


Member Function Documentation

template<class ThrTree, class IterBuf>
template<class RangeT>
void tst_bounded_alloc< ThrTree, IterBuf >::operator() ( const RangeT &  aRng,
ObjT::CounterT  expectedCount,
ListObjT aLstOfObjs 
) [inline]

* '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 tst_bounded_alloc< ThrTree, IterBuf >::thrs ( void   )  const [inline]

Number of threads.

template<class ThrTree, class IterBuf>
const char* tst_bounded_alloc< ThrTree, IterBuf >::what ( void   )  const [inline]


Member Data Documentation

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

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

template<class ThrTree, class IterBuf>
ThrTree tst_bounded_alloc< ThrTree, IterBuf >::_ThrTree [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