STXXL  1.4.1
 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 46 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 m_current
 
InputIterator m_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 52 of file stream.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file stream.h.

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

Definition at line 58 of file stream.h.

Member Function Documentation

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

Standard stream method.

Definition at line 82 of file stream.h.

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

Standard stream method.

Definition at line 63 of file stream.h.

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

Standard stream method.

Definition at line 74 of file stream.h.

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

Definition at line 68 of file stream.h.

Member Data Documentation

template<class InputIterator>
InputIterator stxxl::stream::iterator2stream< InputIterator >::m_current
private

Definition at line 48 of file stream.h.

template<class InputIterator>
InputIterator stxxl::stream::iterator2stream< InputIterator >::m_end
private

Definition at line 48 of file stream.h.


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