Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ostream_iterator Class Template Reference

#include <stl_iterator.h>

List of all members.

Public Types

typedef output_iterator_tag iterator_category
typedef void value_type
typedef void difference_type
typedef void pointer
typedef void reference

Public Methods

 ostream_iterator (ostream &s)
 ostream_iterator (ostream &s, const char *c)
ostream_iterator< T > & operator= (const T &value)
ostream_iterator< T > & operator * ()
ostream_iterator< T > & operator++ ()
ostream_iterator< T > & operator++ (int)

Protected Attributes

ostream * stream
const char * string

template<class T>
class ostream_iterator< T >


Member Typedef Documentation

template<class T>
typedef void ostream_iterator::difference_type
 

Definition at line 811 of file stl_iterator.h.

template<class T>
typedef output_iterator_tag ostream_iterator::iterator_category
 

Definition at line 809 of file stl_iterator.h.

template<class T>
typedef void ostream_iterator::pointer
 

Definition at line 812 of file stl_iterator.h.

template<class T>
typedef void ostream_iterator::reference
 

Definition at line 813 of file stl_iterator.h.

template<class T>
typedef void ostream_iterator::value_type
 

Definition at line 810 of file stl_iterator.h.


Constructor & Destructor Documentation

template<class T>
ostream_iterator< T >::ostream_iterator ostream &    s [inline]
 

Definition at line 815 of file stl_iterator.h.

References stream, and string.

00815 : stream(&s), string(0) {}

template<class T>
ostream_iterator< T >::ostream_iterator ostream &    s,
const char *    c
[inline]
 

Definition at line 816 of file stl_iterator.h.

References stream, and string.

00816 : stream(&s), string(c)  {}


Member Function Documentation

template<class T>
ostream_iterator<T>& ostream_iterator< T >::operator *   [inline]
 

Definition at line 822 of file stl_iterator.h.

00822 { return *this; }

template<class T>
ostream_iterator<T>& ostream_iterator< T >::operator++ int    [inline]
 

Definition at line 824 of file stl_iterator.h.

00824 { return *this; } 

template<class T>
ostream_iterator<T>& ostream_iterator< T >::operator++   [inline]
 

Definition at line 823 of file stl_iterator.h.

00823 { return *this; } 

template<class T>
ostream_iterator<T>& ostream_iterator< T >::operator= const T &    value [inline]
 

Definition at line 817 of file stl_iterator.h.

References stream, and string.

00817                                                  { 
00818     *stream << value;
00819     if (string) *stream << string;
00820     return *this;
00821   }


Member Data Documentation

template<class T>
ostream* ostream_iterator::stream [protected]
 

Definition at line 806 of file stl_iterator.h.

Referenced by operator=, and ostream_iterator.

template<class T>
const char* ostream_iterator::string [protected]
 

Definition at line 807 of file stl_iterator.h.

Referenced by operator=, and ostream_iterator.


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

Documentation generated on Thu May 2 15:03:37 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001