STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::stream::iterator2stream< InputIterator_ > Class Template Reference

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:
examples/algo/copy_and_sort_file.cpp, and examples/stream/stream1.cpp.

Definition at line 71 of file stream.h.

Public Types

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

Public Member Functions

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

Private Attributes

InputIterator_ current_
 
InputIterator_ end_
 

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 77 of file stream.h.

Constructor & Destructor Documentation

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

Definition at line 79 of file stream.h.

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

Definition at line 82 of file stream.h.

Member Function Documentation

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

Standard stream method.

Definition at line 104 of file stream.h.

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

Standard stream method.

Definition at line 85 of file stream.h.

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

Standard stream method.

Definition at line 96 of file stream.h.

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

Definition at line 90 of file stream.h.

Member Data Documentation

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

Definition at line 73 of file stream.h.

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

Definition at line 73 of file stream.h.


The documentation for this class was generated from the following file: