ReactOS 0.4.15-dev-7953-g1f49173
ostream_iterator< _TpP, _CharT, _Traits > Class Template Reference

#include <_stream_iterator.h>

Inheritance diagram for ostream_iterator< _TpP, _CharT, _Traits >:
Collaboration diagram for ostream_iterator< _TpP, _CharT, _Traits >:

Public Types

typedef _CharT char_type
 
typedef _Traits traits_type
 
typedef basic_ostream< _CharT, _Traits > ostream_type
 
typedef output_iterator_tag iterator_category
 
- Public Types inherited from iterator< output_iterator_tag, void, void, void, void >
typedef output_iterator_tag iterator_category
 

Public Member Functions

 ostream_iterator (ostream_type &__s)
 
 ostream_iterator (ostream_type &__s, const _CharT *__c)
 
_Selfoperator= (const _TpP &__val)
 
_Selfoperator* ()
 
_Selfoperator++ ()
 
_Selfoperator++ (int)
 

Private Types

typedef ostream_iterator< _TpP, _CharT, _Traits > _Self
 

Private Attributes

ostream_type_M_stream
 
const _CharT * _M_string
 

Detailed Description

template<class _TpP, class _CharT = char, class _Traits = char_traits<_CharT>>
class ostream_iterator< _TpP, _CharT, _Traits >

Definition at line 162 of file _stream_iterator.h.

Member Typedef Documentation

◆ _Self

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
typedef ostream_iterator<_TpP, _CharT, _Traits> ostream_iterator< _TpP, _CharT, _Traits >::_Self
private

Definition at line 168 of file _stream_iterator.h.

◆ char_type

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
typedef _CharT ostream_iterator< _TpP, _CharT, _Traits >::char_type

Definition at line 171 of file _stream_iterator.h.

◆ iterator_category

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
typedef output_iterator_tag ostream_iterator< _TpP, _CharT, _Traits >::iterator_category

Definition at line 175 of file _stream_iterator.h.

◆ ostream_type

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
typedef basic_ostream<_CharT, _Traits> ostream_iterator< _TpP, _CharT, _Traits >::ostream_type

Definition at line 173 of file _stream_iterator.h.

◆ traits_type

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
typedef _Traits ostream_iterator< _TpP, _CharT, _Traits >::traits_type

Definition at line 172 of file _stream_iterator.h.

Constructor & Destructor Documentation

◆ ostream_iterator() [1/2]

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
ostream_iterator< _TpP, _CharT, _Traits >::ostream_iterator ( ostream_type __s)
inline

Definition at line 177 of file _stream_iterator.h.

177: _M_stream(&__s), _M_string(0) {}
ostream_type * _M_stream
const _CharT * _M_string

◆ ostream_iterator() [2/2]

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
ostream_iterator< _TpP, _CharT, _Traits >::ostream_iterator ( ostream_type __s,
const _CharT *  __c 
)
inline

Definition at line 178 of file _stream_iterator.h.

179 : _M_stream(&__s), _M_string(__c) {}
#define __c
Definition: schilyio.h:209

Member Function Documentation

◆ operator*()

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
_Self & ostream_iterator< _TpP, _CharT, _Traits >::operator* ( )
inline

Definition at line 185 of file _stream_iterator.h.

185{ return *this; }

◆ operator++() [1/2]

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
_Self & ostream_iterator< _TpP, _CharT, _Traits >::operator++ ( )
inline

Definition at line 186 of file _stream_iterator.h.

186{ return *this; }

◆ operator++() [2/2]

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
_Self & ostream_iterator< _TpP, _CharT, _Traits >::operator++ ( int  )
inline

Definition at line 187 of file _stream_iterator.h.

187{ return *this; }

◆ operator=()

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
_Self & ostream_iterator< _TpP, _CharT, _Traits >::operator= ( const _TpP &  __val)
inline

Definition at line 180 of file _stream_iterator.h.

180 {
181 *_M_stream << __val;
183 return *this;
184 }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656

Member Data Documentation

◆ _M_stream

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
ostream_type* ostream_iterator< _TpP, _CharT, _Traits >::_M_stream
private

Definition at line 189 of file _stream_iterator.h.

◆ _M_string

template<class _TpP , class _CharT = char, class _Traits = char_traits<_CharT>>
const _CharT* ostream_iterator< _TpP, _CharT, _Traits >::_M_string
private

Definition at line 190 of file _stream_iterator.h.


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