rpa::dump_row_iterator< Type, OutStrmBuf, ContIn > Class Template Reference

#include <row_iterator.h>

List of all members.

Public Types

typedef orow_iterator< Type,
OutStrmBuf > 
orow_iter_t

Static Public Member Functions

static void dump_all (orow_iter_t &aRec, const ContIn &aOC)
static void dump_itr (orow_iter_t &aRec, const ContIn &aOC, typename ContIn::const_iterator aEnd)


Detailed Description

template<class Type, class OutStrmBuf, class ContIn>
class rpa::dump_row_iterator< Type, OutStrmBuf, ContIn >

This template class is parameterised with the container used as a per-thread buffer, where each threads write its results before they are flushed to the output. This class describes how the buffer is fully flushed (If infinite-size buffers) or partly flush (up to an end iterator, if limited-size buffers) into the output iterator - which is row_iterator, a superset of a std::ostream_iterator.


Member Typedef Documentation

template<class Type, class OutStrmBuf, class ContIn>
typedef orow_iterator< Type, OutStrmBuf > rpa::dump_row_iterator< Type, OutStrmBuf, ContIn >::orow_iter_t


Member Function Documentation

template<class Type, class OutStrmBuf, class ContIn>
static void rpa::dump_row_iterator< Type, OutStrmBuf, ContIn >::dump_all ( orow_iter_t aRec,
const ContIn &  aOC 
) [inline, static]

Dumps the content of the buffer into the output iterator. It can be faster than the plain sequential algorithm: It is possible to remove any protection on this stream, because we already locked it.

template<class Type, class OutStrmBuf, class ContIn>
static void rpa::dump_row_iterator< Type, OutStrmBuf, ContIn >::dump_itr ( orow_iter_t aRec,
const ContIn &  aOC,
typename ContIn::const_iterator  aEnd 
) [inline, static]

Does the same as dump_all, but only up to a end iterator. This makes a plain std::copy into the output ostream_iterator.


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