Stxxl
1.4.0
|
Buffered sequential writer to a vector using overlapped I/O. More...
#include <vector.h>
Public Types | |
typedef VectorType::value_type | value_type |
typedef VectorType | vector_type |
typedef VectorType::iterator | vector_iterator_type |
typedef VectorType::const_iterator | vector_const_iterator_type |
Public Member Functions | |
vector_bufwriter (vector_iterator_type begin, vector_iterator_type end, unsigned_type nbuffers=0) | |
Create overlapped writer for begin,end range. | |
~vector_bufwriter () | |
Finish writing and flush output back to vector. | |
vector_bufwriter & | operator<< (const value_type &v) |
Write value to the current position and advance the internal iterator. | |
void | finish () |
Finish writing and flush output back to vector. | |
Private Types | |
typedef buf_ostream< typename vector_iterator_type::block_type, typename vector_iterator_type::bids_container_iterator > | buf_ostream_type |
Private Attributes | |
vector_iterator_type | m_begin |
vector_iterator_type | m_end |
vector_const_iterator_type | m_prev |
buf_ostream_type * | m_bufout |
unsigned_type | m_nbuffers |
Buffered sequential writer to a vector using overlapped I/O.
This buffered writer can be used to write a large sequential region of a vector using overlapped i/o. The object is created from an iterator range, which can then be written to using operator<<.
typedef buf_ostream<typename vector_iterator_type::block_type, typename vector_iterator_type::bids_container_iterator> stxxl::vector_bufwriter< VectorType >::buf_ostream_type [private] |
typedef VectorType::value_type stxxl::vector_bufwriter< VectorType >::value_type |
typedef VectorType::const_iterator stxxl::vector_bufwriter< VectorType >::vector_const_iterator_type |
typedef VectorType::iterator stxxl::vector_bufwriter< VectorType >::vector_iterator_type |
typedef VectorType stxxl::vector_bufwriter< VectorType >::vector_type |
stxxl::vector_bufwriter< VectorType >::vector_bufwriter | ( | vector_iterator_type | begin, |
vector_iterator_type | end, | ||
unsigned_type | nbuffers = 0 |
||
) | [inline] |
stxxl::vector_bufwriter< VectorType >::~vector_bufwriter | ( | ) | [inline] |
void stxxl::vector_bufwriter< VectorType >::finish | ( | ) | [inline] |
vector_bufwriter& stxxl::vector_bufwriter< VectorType >::operator<< | ( | const value_type & | v | ) | [inline] |
vector_iterator_type stxxl::vector_bufwriter< VectorType >::m_begin [private] |
buf_ostream_type* stxxl::vector_bufwriter< VectorType >::m_bufout [private] |
vector_iterator_type stxxl::vector_bufwriter< VectorType >::m_end [private] |
unsigned_type stxxl::vector_bufwriter< VectorType >::m_nbuffers [private] |
vector_const_iterator_type stxxl::vector_bufwriter< VectorType >::m_prev [private] |