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

A model of stream that outputs data from an adaptable generator functor For convenience use streamify function instead of direct instantiation of generator2stream . More...

#include <stream.h>

List of all members.

Public Types

typedef T value_type
 Standard stream typedef.

Public Member Functions

 generator2stream (Generator_ g)
 generator2stream (const generator2stream &a)
const value_typeoperator* () const
 Standard stream method.
const value_typeoperator-> () const
generator2streamoperator++ ()
 Standard stream method.
bool empty () const
 Standard stream method.

Private Attributes

Generator_ gen_
value_type current_

Detailed Description

template<class Generator_, typename T = typename Generator_::value_type>
class stxxl::stream::generator2stream< Generator_, T >

A model of stream that outputs data from an adaptable generator functor For convenience use streamify function instead of direct instantiation of generator2stream .

Examples:
stream/test_stream.cpp.

Definition at line 622 of file stream.h.


Member Typedef Documentation

template<class Generator_ , typename T = typename Generator_::value_type>
typedef T stxxl::stream::generator2stream< Generator_, T >::value_type

Standard stream typedef.

Definition at line 626 of file stream.h.


Constructor & Destructor Documentation

template<class Generator_ , typename T = typename Generator_::value_type>
stxxl::stream::generator2stream< Generator_, T >::generator2stream ( Generator_  g) [inline]

Definition at line 633 of file stream.h.

template<class Generator_ , typename T = typename Generator_::value_type>
stxxl::stream::generator2stream< Generator_, T >::generator2stream ( const generator2stream< Generator_, T > &  a) [inline]

Definition at line 636 of file stream.h.


Member Function Documentation

template<class Generator_ , typename T = typename Generator_::value_type>
bool stxxl::stream::generator2stream< Generator_, T >::empty ( ) const [inline]

Standard stream method.

Definition at line 657 of file stream.h.

template<class Generator_ , typename T = typename Generator_::value_type>
const value_type& stxxl::stream::generator2stream< Generator_, T >::operator* ( ) const [inline]

Standard stream method.

Definition at line 639 of file stream.h.

template<class Generator_ , typename T = typename Generator_::value_type>
generator2stream& stxxl::stream::generator2stream< Generator_, T >::operator++ ( ) [inline]

Standard stream method.

Definition at line 650 of file stream.h.

template<class Generator_ , typename T = typename Generator_::value_type>
const value_type* stxxl::stream::generator2stream< Generator_, T >::operator-> ( ) const [inline]

Definition at line 644 of file stream.h.


Member Data Documentation

template<class Generator_ , typename T = typename Generator_::value_type>
value_type stxxl::stream::generator2stream< Generator_, T >::current_ [private]

Definition at line 630 of file stream.h.

template<class Generator_ , typename T = typename Generator_::value_type>
Generator_ stxxl::stream::generator2stream< Generator_, T >::gen_ [private]

Definition at line 629 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