#include <streambuf_iterator.h>
Public Types | |
typedef Category | iterator_category |
One of the tag types. | |
typedef Type | value_type |
The type "pointed to" by the iterator. | |
typedef Distance | difference_type |
Distance between iterators is represented as this type. | |
typedef Pointer | pointer |
This type represents a pointer-to-value_type. | |
typedef Reference | reference |
This type represents a reference-to-value_type. | |
typedef CharT | char_type |
Public typedefs. | |
typedef Traits | traits_type |
Public typedefs. | |
typedef basic_streambuf < CharT, Traits > | streambuf_type |
Public typedefs. | |
typedef basic_ostream< CharT, Traits > | ostream_type |
Public typedefs. | |
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_iterator & | operator= (CharT c) |
Write character to streambuf. Calls streambuf.sputc(). | |
ostreambuf_iterator & | operator * () |
Return *this. | |
ostreambuf_iterator & | operator++ (int) |
Return *this. | |
ostreambuf_iterator & | operator++ () |
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 |
Definition at line 191 of file streambuf_iterator.h.
typedef CharT std::ostreambuf_iterator< CharT, Traits >::char_type |
typedef Traits std::ostreambuf_iterator< CharT, Traits >::traits_type |
typedef basic_streambuf<CharT, Traits> std::ostreambuf_iterator< CharT, Traits >::streambuf_type |
typedef basic_ostream<CharT, Traits> std::ostreambuf_iterator< CharT, Traits >::ostream_type |
typedef Category std::iterator< Category, Type, Distance, Pointer, Reference >::iterator_category [inherited] |
typedef Type std::iterator< Category, Type, Distance, Pointer, Reference >::value_type [inherited] |
The type "pointed to" by the iterator.
Reimplemented in __gnu_cxx::sequence_buffer< Sequence, Buf_sz >.
Definition at line 109 of file stl_iterator_base_types.h.
typedef Distance std::iterator< Category, Type, Distance, Pointer, Reference >::difference_type [inherited] |
Distance between iterators is represented as this type.
Reimplemented in std::reverse_iterator< Iterator >.
Definition at line 111 of file stl_iterator_base_types.h.
typedef Pointer std::iterator< Category, Type, Distance, Pointer, Reference >::pointer [inherited] |
This type represents a pointer-to-value_type.
Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.
Definition at line 113 of file stl_iterator_base_types.h.
typedef Reference std::iterator< Category, Type, Distance, Pointer, Reference >::reference [inherited] |
This type represents a reference-to-value_type.
Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.
Definition at line 115 of file stl_iterator_base_types.h.
std::ostreambuf_iterator< CharT, Traits >::ostreambuf_iterator | ( | ostream_type & | s | ) | throw () [inline] |
std::ostreambuf_iterator< CharT, Traits >::ostreambuf_iterator | ( | streambuf_type * | s | ) | throw () [inline] |
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.
ostreambuf_iterator& std::ostreambuf_iterator< CharT, Traits >::operator * | ( | ) | [inline] |
ostreambuf_iterator& std::ostreambuf_iterator< CharT, Traits >::operator++ | ( | int | ) | [inline] |
ostreambuf_iterator& std::ostreambuf_iterator< CharT, Traits >::operator++ | ( | ) | [inline] |
bool std::ostreambuf_iterator< CharT, Traits >::failed | ( | ) | const throw () [inline] |