#include <stl_iterator.h>
Collaboration diagram for istream_iterator:

Public Types | |
| typedef input_iterator_tag | iterator_category |
| typedef T | value_type |
| typedef Distance | difference_type |
| typedef const T * | pointer |
| typedef const T & | reference |
Public Methods | |
| istream_iterator () | |
| istream_iterator (istream &s) | |
| reference | operator * () const |
| pointer | operator-> () const |
| istream_iterator< T, Distance > & | operator++ () |
| istream_iterator< T, Distance > | operator++ (int) |
Protected Methods | |
| void | read () |
Protected Attributes | |
| istream * | stream |
| T | value |
| bool | end_marker |
Friends | |
| bool | operator==__STL_NULL_TMPL_ARGS (const istream_iterator< T, Distance > &x, const istream_iterator< T, Distance > &y) |
|
|||||
|
Definition at line 757 of file stl_iterator.h. |
|
|||||
|
Definition at line 755 of file stl_iterator.h. |
|
|||||
|
Definition at line 758 of file stl_iterator.h. Referenced by operator->. |
|
|||||
|
Definition at line 759 of file stl_iterator.h. Referenced by operator *. |
|
|||||
|
Definition at line 756 of file stl_iterator.h. |
|
|||||||||
|
Definition at line 761 of file stl_iterator.h. References end_marker, and stream.
00761 : stream(&cin), end_marker(false) {} |
|
||||||||||
|
Definition at line 762 of file stl_iterator.h.
|
|
|||||||||
|
Definition at line 763 of file stl_iterator.h. References reference, and value. Referenced by operator->.
00763 { return value; }
|
|
||||||||||
|
Definition at line 771 of file stl_iterator.h. References read.
00771 {
00772 istream_iterator<T, Distance> tmp = *this;
00773 read();
00774 return tmp;
00775 }
|
|
|||||||||
|
Definition at line 767 of file stl_iterator.h. References read.
00767 {
00768 read();
00769 return *this;
00770 }
|
|
|||||||||
|
Definition at line 765 of file stl_iterator.h. References operator *, and pointer.
00765 { return &(operator*()); }
|
|
|||||||||
|
Definition at line 749 of file stl_iterator.h. References end_marker, stream, and value. Referenced by istream_iterator, and operator++.
00749 {
00750 end_marker = (*stream) ? true : false;
00751 if (end_marker) *stream >> value;
00752 end_marker = (*stream) ? true : false;
00753 }
|
|
||||||||||||||||
|
|
|
|||||
|
Definition at line 748 of file stl_iterator.h. Referenced by istream_iterator, operator==, and read. |
|
|||||
|
Definition at line 746 of file stl_iterator.h. Referenced by istream_iterator, operator==, and read. |
|
|||||
|
Definition at line 747 of file stl_iterator.h. Referenced by operator *, and read. |
| Documentation generated on Thu May 2 15:03:32 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |