std::istream_iterator< Type, CharT, Traits, Dist > Class Template Reference

Provides input iterator semantics for streams. More...

#include <stream_iterator.h>

Inheritance diagram for std::istream_iterator< Type, CharT, Traits, Dist >:

Inheritance graph
[legend]
Collaboration diagram for std::istream_iterator< Type, CharT, Traits, Dist >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CharT char_type
typedef Traits traits_type
typedef basic_istream< CharT,
Traits > 
istream_type
typedef Category iterator_category
 One of the tag types.
typedef Type value_type
 The type "pointed to" by the iterator.
typedef Distance difference_type
 Distance between iterators is represented as this type.
typedef Pointer pointer
 This type represents a pointer-to-value_type.
typedef Reference reference
 This type represents a reference-to-value_type.

Public Member Functions

 istream_iterator ()
 Construct end of input stream iterator.
 istream_iterator (istream_type &s)
 Construct start of input stream iterator.
 istream_iterator (const istream_iterator &__obj)
const Type & operator * () const
const Type * operator-> () const
istream_iteratoroperator++ ()
istream_iterator operator++ (int)
bool M_equal (const istream_iterator &x) const

Private Member Functions

void M_read ()

Private Attributes

istream_typeM_stream
Type M_value
bool M_ok

Detailed Description

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t>
class std::istream_iterator< Type, CharT, Traits, Dist >

Provides input iterator semantics for streams.

Definition at line 47 of file stream_iterator.h.


Member Typedef Documentation

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
typedef Distance std::iterator< Category, Type, Distance, Pointer, Reference >::difference_type [inherited]

Distance between iterators is represented as this type.

Reimplemented in std::reverse_iterator< Iterator >.

Definition at line 113 of file stl_iterator_base_types.h.

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
typedef Category std::iterator< Category, Type, Distance, Pointer, Reference >::iterator_category [inherited]

One of the tag types.

Definition at line 109 of file stl_iterator_base_types.h.

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
typedef Pointer std::iterator< Category, Type, Distance, Pointer, Reference >::pointer [inherited]

This type represents a pointer-to-value_type.

Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.

Definition at line 115 of file stl_iterator_base_types.h.

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
typedef Reference std::iterator< Category, Type, Distance, Pointer, Reference >::reference [inherited]

This type represents a reference-to-value_type.

Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.

Definition at line 117 of file stl_iterator_base_types.h.

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
typedef Type std::iterator< Category, Type, Distance, Pointer, Reference >::value_type [inherited]

The type "pointed to" by the iterator.

Reimplemented in __gnu_cxx::sequence_buffer< Sequence, Buf_sz >.

Definition at line 111 of file stl_iterator_base_types.h.


Constructor & Destructor Documentation

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t>
std::istream_iterator< Type, CharT, Traits, Dist >::istream_iterator (  )  [inline]

Construct end of input stream iterator.

Definition at line 62 of file stream_iterator.h.

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t>
std::istream_iterator< Type, CharT, Traits, Dist >::istream_iterator ( istream_type s  )  [inline]

Construct start of input stream iterator.

Definition at line 66 of file stream_iterator.h.


The documentation for this class was generated from the following file:
Generated on Sat Jul 15 16:22:53 2006 for libstdc++-v3 Source by  doxygen 1.4.7