Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Types | Private Attributes
stxxl::vector_bufwriter< VectorType > Class Template Reference

Buffered sequential writer to a vector using overlapped I/O. More...

#include <vector.h>

Collaboration diagram for stxxl::vector_bufwriter< VectorType >:
Collaboration graph
[legend]

List of all members.

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_bufwriteroperator<< (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_typem_bufout
unsigned_type m_nbuffers

Detailed Description

template<typename VectorType>
class stxxl::vector_bufwriter< VectorType >

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<<.

Definition at line 1682 of file vector.h.


Member Typedef Documentation

template<typename VectorType >
typedef buf_ostream<typename vector_iterator_type::block_type, typename vector_iterator_type::bids_container_iterator> stxxl::vector_bufwriter< VectorType >::buf_ostream_type [private]

Definition at line 1694 of file vector.h.

template<typename VectorType >
typedef VectorType::value_type stxxl::vector_bufwriter< VectorType >::value_type

Definition at line 1686 of file vector.h.

template<typename VectorType >
typedef VectorType::const_iterator stxxl::vector_bufwriter< VectorType >::vector_const_iterator_type

Definition at line 1690 of file vector.h.

template<typename VectorType >
typedef VectorType::iterator stxxl::vector_bufwriter< VectorType >::vector_iterator_type

Definition at line 1689 of file vector.h.

template<typename VectorType >
typedef VectorType stxxl::vector_bufwriter< VectorType >::vector_type

Definition at line 1688 of file vector.h.


Constructor & Destructor Documentation

template<typename VectorType >
stxxl::vector_bufwriter< VectorType >::vector_bufwriter ( vector_iterator_type  begin,
vector_iterator_type  end,
unsigned_type  nbuffers = 0 
) [inline]

Create overlapped writer for begin,end range.

Definition at line 1704 of file vector.h.

template<typename VectorType >
stxxl::vector_bufwriter< VectorType >::~vector_bufwriter ( ) [inline]

Finish writing and flush output back to vector.

Definition at line 1715 of file vector.h.


Member Function Documentation

template<typename VectorType >
void stxxl::vector_bufwriter< VectorType >::finish ( ) [inline]

Finish writing and flush output back to vector.

Definition at line 1767 of file vector.h.

template<typename VectorType >
vector_bufwriter& stxxl::vector_bufwriter< VectorType >::operator<< ( const value_type v) [inline]

Write value to the current position and advance the internal iterator.

Definition at line 1721 of file vector.h.


Member Data Documentation

template<typename VectorType >
vector_iterator_type stxxl::vector_bufwriter< VectorType >::m_begin [private]

Definition at line 1696 of file vector.h.

template<typename VectorType >
buf_ostream_type* stxxl::vector_bufwriter< VectorType >::m_bufout [private]

Definition at line 1698 of file vector.h.

template<typename VectorType >
vector_iterator_type stxxl::vector_bufwriter< VectorType >::m_end [private]

Definition at line 1696 of file vector.h.

template<typename VectorType >
unsigned_type stxxl::vector_bufwriter< VectorType >::m_nbuffers [private]

Definition at line 1700 of file vector.h.

template<typename VectorType >
vector_const_iterator_type stxxl::vector_bufwriter< VectorType >::m_prev [private]

Definition at line 1697 of file vector.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines