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

A model of stream that retrieves the data from an input iterator For convenience use streamify function instead of direct instantiation of iterator2stream . More...

#include <stream.h>

List of all members.

Public Types

typedef std::iterator_traits
< InputIterator_ >::value_type 
value_type
 Standard stream typedef.

Public Member Functions

 iterator2stream (InputIterator_ begin, InputIterator_ end)
 iterator2stream (const iterator2stream &a)
const value_typeoperator* () const
 Standard stream method.
const value_typeoperator-> () const
iterator2streamoperator++ ()
 Standard stream method.
bool empty () const
 Standard stream method.

Private Attributes

InputIterator_ current_
InputIterator_ end_

Detailed Description

template<class InputIterator_>
class stxxl::stream::iterator2stream< InputIterator_ >

A model of stream that retrieves the data from an input iterator For convenience use streamify function instead of direct instantiation of iterator2stream .

Examples:
algo/copy_and_sort_file.cpp, and stream/test_naive_transpose.cpp.

Definition at line 70 of file stream.h.


Member Typedef Documentation

template<class InputIterator_>
typedef std::iterator_traits<InputIterator_>::value_type stxxl::stream::iterator2stream< InputIterator_ >::value_type

Standard stream typedef.

Definition at line 76 of file stream.h.


Constructor & Destructor Documentation

template<class InputIterator_>
stxxl::stream::iterator2stream< InputIterator_ >::iterator2stream ( InputIterator_  begin,
InputIterator_  end 
) [inline]

Definition at line 78 of file stream.h.

template<class InputIterator_>
stxxl::stream::iterator2stream< InputIterator_ >::iterator2stream ( const iterator2stream< InputIterator_ > &  a) [inline]

Definition at line 81 of file stream.h.


Member Function Documentation

template<class InputIterator_>
bool stxxl::stream::iterator2stream< InputIterator_ >::empty ( ) const [inline]

Standard stream method.

Definition at line 103 of file stream.h.

template<class InputIterator_>
const value_type& stxxl::stream::iterator2stream< InputIterator_ >::operator* ( ) const [inline]

Standard stream method.

Definition at line 84 of file stream.h.

template<class InputIterator_>
iterator2stream& stxxl::stream::iterator2stream< InputIterator_ >::operator++ ( ) [inline]

Standard stream method.

Definition at line 95 of file stream.h.

template<class InputIterator_>
const value_type* stxxl::stream::iterator2stream< InputIterator_ >::operator-> ( ) const [inline]

Definition at line 89 of file stream.h.


Member Data Documentation

template<class InputIterator_>
InputIterator_ stxxl::stream::iterator2stream< InputIterator_ >::current_ [private]

Definition at line 72 of file stream.h.

template<class InputIterator_>
InputIterator_ stxxl::stream::iterator2stream< InputIterator_ >::end_ [private]

Definition at line 72 of file stream.h.


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