std::ostreambuf_iterator< _CharT, _Traits > Class Template Reference

Provides output iterator semantics for streambufs. More...

#include <streambuf_iterator.h>

Inheritance diagram for std::ostreambuf_iterator< _CharT, _Traits >:

std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference > List of all members.

Public Types

typedef _CharT char_type
 Public typedefs.
typedef _Traits traits_type
typedef basic_streambuf< _CharT,
_Traits > 
streambuf_type
typedef basic_ostream< _CharT,
_Traits > 
ostream_type

Public Member Functions

 ostreambuf_iterator (ostream_type &__s) throw ()
 Construct output iterator from ostream.
 ostreambuf_iterator (streambuf_type *__s) throw ()
 Construct output iterator from streambuf.
ostreambuf_iteratoroperator= (_CharT __c)
 Write character to streambuf. Calls streambuf.sputc().
ostreambuf_iteratoroperator * ()
 Return *this.
ostreambuf_iteratoroperator++ (int)
 Return *this.
ostreambuf_iteratoroperator++ ()
 Return *this.
bool failed () const throw ()
 Return true if previous operator=() failed.
ostreambuf_iterator_M_put (const _CharT *__ws, streamsize __len)

Private Attributes

streambuf_type_M_sbuf
bool _M_failed

Detailed Description

template<typename _CharT, typename _Traits>
class std::ostreambuf_iterator< _CharT, _Traits >

Provides output iterator semantics for streambufs.

Definition at line 191 of file streambuf_iterator.h.


Member Typedef Documentation

template<typename _CharT, typename _Traits>
typedef _CharT std::ostreambuf_iterator< _CharT, _Traits >::char_type

Public typedefs.

Definition at line 198 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
typedef basic_ostream<_CharT, _Traits> std::ostreambuf_iterator< _CharT, _Traits >::ostream_type

Definition at line 201 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
typedef basic_streambuf<_CharT, _Traits> std::ostreambuf_iterator< _CharT, _Traits >::streambuf_type

Definition at line 200 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
typedef _Traits std::ostreambuf_iterator< _CharT, _Traits >::traits_type

Definition at line 199 of file streambuf_iterator.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( ostream_type __s  )  throw () [inline]

Construct output iterator from ostream.

Definition at line 210 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
std::ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( streambuf_type __s  )  throw () [inline]

Construct output iterator from streambuf.

Definition at line 214 of file streambuf_iterator.h.


Member Function Documentation

template<typename _CharT, typename _Traits>
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::_M_put ( const _CharT *  __ws,
streamsize  __len 
) [inline]

Definition at line 248 of file streambuf_iterator.h.

References std::ostreambuf_iterator< _CharT, _Traits >::_M_failed.

Referenced by std::__write().

template<typename _CharT, typename _Traits>
bool std::ostreambuf_iterator< _CharT, _Traits >::failed (  )  const throw () [inline]

Return true if previous operator=() failed.

Definition at line 244 of file streambuf_iterator.h.

References std::ostreambuf_iterator< _CharT, _Traits >::_M_failed.

template<typename _CharT, typename _Traits>
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator * (  )  [inline]

Return *this.

Definition at line 229 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator++ (  )  [inline]

Return *this.

Definition at line 239 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator++ ( int   )  [inline]

Return *this.

Definition at line 234 of file streambuf_iterator.h.

template<typename _CharT, typename _Traits>
ostreambuf_iterator& std::ostreambuf_iterator< _CharT, _Traits >::operator= ( _CharT  __c  )  [inline]

Write character to streambuf. Calls streambuf.sputc().

Definition at line 219 of file streambuf_iterator.h.

References std::ostreambuf_iterator< _CharT, _Traits >::_M_failed, std::ostreambuf_iterator< _CharT, _Traits >::_M_sbuf, and std::basic_streambuf< _CharT, _Traits >::sputc().


Member Data Documentation

template<typename _CharT, typename _Traits>
bool std::ostreambuf_iterator< _CharT, _Traits >::_M_failed [private]

Definition at line 206 of file streambuf_iterator.h.

Referenced by std::ostreambuf_iterator< _CharT, _Traits >::_M_put(), std::ostreambuf_iterator< _CharT, _Traits >::failed(), and std::ostreambuf_iterator< _CharT, _Traits >::operator=().

template<typename _CharT, typename _Traits>
streambuf_type* std::ostreambuf_iterator< _CharT, _Traits >::_M_sbuf [private]

Definition at line 205 of file streambuf_iterator.h.

Referenced by std::ostreambuf_iterator< _CharT, _Traits >::operator=().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:59:15 2010 for GNU C++ STL by  doxygen 1.4.7