ReactOS 0.4.15-dev-7958-gcd0bb1a
ostreambuf_iterator< _CharT, _Traits > Class Template Reference

#include <_ostreambuf_iterator.h>

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

Public Types

typedef _CharT char_type
 
typedef _Traits traits_type
 
typedef _Traits::int_type int_type
 
typedef basic_streambuf< _CharT, _Traits > streambuf_type
 
typedef basic_ostream< _CharT, _Traits > ostream_type
 
typedef output_iterator_tag iterator_category
 
typedef void value_type
 
typedef void difference_type
 
typedef void pointer
 
typedef void reference
 
- Public Types inherited from iterator< output_iterator_tag, void, void, void, void >
typedef output_iterator_tag iterator_category
 

Public Member Functions

 ostreambuf_iterator (streambuf_type *__buf) _STLP_NOTHROW
 
 ostreambuf_iterator (ostream_type &__o) _STLP_NOTHROW
 
ostreambuf_iterator< _CharT, _Traits > & operator= (char_type __c)
 
ostreambuf_iterator< _CharT, _Traits > & operator* ()
 
ostreambuf_iterator< _CharT, _Traits > & operator++ ()
 
ostreambuf_iterator< _CharT, _Traits > & operator++ (int)
 
bool failed () const
 

Private Attributes

streambuf_type_M_buf
 
bool _M_ok
 

Detailed Description

template<class _CharT, class _Traits>
class ostreambuf_iterator< _CharT, _Traits >

Definition at line 41 of file _ostreambuf_iterator.h.

Member Typedef Documentation

◆ char_type

template<class _CharT , class _Traits >
typedef _CharT ostreambuf_iterator< _CharT, _Traits >::char_type

Definition at line 44 of file _ostreambuf_iterator.h.

◆ difference_type

template<class _CharT , class _Traits >
typedef void ostreambuf_iterator< _CharT, _Traits >::difference_type

Definition at line 52 of file _ostreambuf_iterator.h.

◆ int_type

template<class _CharT , class _Traits >
typedef _Traits::int_type ostreambuf_iterator< _CharT, _Traits >::int_type

Definition at line 46 of file _ostreambuf_iterator.h.

◆ iterator_category

template<class _CharT , class _Traits >
typedef output_iterator_tag ostreambuf_iterator< _CharT, _Traits >::iterator_category

Definition at line 50 of file _ostreambuf_iterator.h.

◆ ostream_type

template<class _CharT , class _Traits >
typedef basic_ostream<_CharT, _Traits> ostreambuf_iterator< _CharT, _Traits >::ostream_type

Definition at line 48 of file _ostreambuf_iterator.h.

◆ pointer

template<class _CharT , class _Traits >
typedef void ostreambuf_iterator< _CharT, _Traits >::pointer

Definition at line 53 of file _ostreambuf_iterator.h.

◆ reference

template<class _CharT , class _Traits >
typedef void ostreambuf_iterator< _CharT, _Traits >::reference

Definition at line 54 of file _ostreambuf_iterator.h.

◆ streambuf_type

template<class _CharT , class _Traits >
typedef basic_streambuf<_CharT, _Traits> ostreambuf_iterator< _CharT, _Traits >::streambuf_type

Definition at line 47 of file _ostreambuf_iterator.h.

◆ traits_type

template<class _CharT , class _Traits >
typedef _Traits ostreambuf_iterator< _CharT, _Traits >::traits_type

Definition at line 45 of file _ostreambuf_iterator.h.

◆ value_type

template<class _CharT , class _Traits >
typedef void ostreambuf_iterator< _CharT, _Traits >::value_type

Definition at line 51 of file _ostreambuf_iterator.h.

Constructor & Destructor Documentation

◆ ostreambuf_iterator() [1/2]

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( streambuf_type __buf)
inline

Definition at line 57 of file _ostreambuf_iterator.h.

57: _M_buf(__buf), _M_ok(__buf!=0) {}
streambuf_type * _M_buf

◆ ostreambuf_iterator() [2/2]

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits >::ostreambuf_iterator ( ostream_type __o)
inline

Definition at line 79 of file _ostreambuf_iterator.h.

#define _STLP_PRIV
Definition: _dm.h:70
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE basic_streambuf< _CharT, _Traits > *_STLP_CALL __get_ostreambuf(basic_ostream< _CharT, _Traits > &)
Definition: _ostream.h:233

Member Function Documentation

◆ failed()

template<class _CharT , class _Traits >
bool ostreambuf_iterator< _CharT, _Traits >::failed ( ) const
inline

Definition at line 71 of file _ostreambuf_iterator.h.

71{ return !_M_ok; }

◆ operator*()

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits > & ostreambuf_iterator< _CharT, _Traits >::operator* ( )
inline

Definition at line 67 of file _ostreambuf_iterator.h.

67{ return *this; }

◆ operator++() [1/2]

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits > & ostreambuf_iterator< _CharT, _Traits >::operator++ ( )
inline

Definition at line 68 of file _ostreambuf_iterator.h.

68{ return *this; }

◆ operator++() [2/2]

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits > & ostreambuf_iterator< _CharT, _Traits >::operator++ ( int  )
inline

Definition at line 69 of file _ostreambuf_iterator.h.

69{ return *this; }

◆ operator=()

template<class _CharT , class _Traits >
ostreambuf_iterator< _CharT, _Traits > & ostreambuf_iterator< _CharT, _Traits >::operator= ( char_type  __c)
inline

Definition at line 61 of file _ostreambuf_iterator.h.

61 {
62 _M_ok = _M_ok && !traits_type::eq_int_type(_M_buf->sputc(__c),
63 traits_type::eof());
64 return *this;
65 }
int_type sputc(char_type __c)
Definition: _streambuf.h:198
#define __c
Definition: schilyio.h:209

Member Data Documentation

◆ _M_buf

template<class _CharT , class _Traits >
streambuf_type* ostreambuf_iterator< _CharT, _Traits >::_M_buf
private

◆ _M_ok

template<class _CharT , class _Traits >
bool ostreambuf_iterator< _CharT, _Traits >::_M_ok
private

The documentation for this class was generated from the following files: