#include <row_iterator.h>
Public Types | |
typedef OutStrmBuf::char_type | char_type |
typedef OutStrmBuf::traits_type | traits_type |
typedef std::basic_ostream< char_type, traits_type > | ostream_type |
typedef std::ostream_iterator< Type, char_type, traits_type > | ostream_iterator_t |
Public Member Functions | |
void | check (void) const |
orow_iterator (ostream_type &__s, const char_type *__c=NULL) | |
Construct from an ostream. | |
orow_iterator (const orow_iterator &__obj) | |
Copy constructor. | |
orow_iterator & | operator= (const Type &__value) |
orow_iterator & | operator * () |
orow_iterator & | operator++ () |
orow_iterator & | operator++ (int) |
ostream_iterator_t | to_ostream_iterator (void) |
ostream_type & | stream (void) |
OutStrmBuf * | strmbuf (void) |
const char_type * | delimiter (void) |
The delimiter may be NULL, equivalent to an empty string. | |
Private Attributes | |
ostream_type * | _M_stream |
const char_type * | _M_string |
OutStrmBuf * | _M_strmbuf |
This class provides an iterator to write to an ostream. The type Tp is the only type written by this iterator and there must be an operator<<(Tp) defined.
Tp | The type to write to the ostream. | |
CharT | The ostream char_type. | |
Traits | The ostream char_traits. |
typedef OutStrmBuf::char_type rpa::orow_iterator< Type, OutStrmBuf >::char_type |
typedef std::ostream_iterator< Type, char_type , traits_type > rpa::orow_iterator< Type, OutStrmBuf >::ostream_iterator_t |
typedef std::basic_ostream<char_type, traits_type> rpa::orow_iterator< Type, OutStrmBuf >::ostream_type |
typedef OutStrmBuf::traits_type rpa::orow_iterator< Type, OutStrmBuf >::traits_type |
rpa::orow_iterator< Type, OutStrmBuf >::orow_iterator | ( | ostream_type & | __s, | |
const char_type * | __c = NULL | |||
) | [inline] |
Construct from an ostream.
rpa::orow_iterator< Type, OutStrmBuf >::orow_iterator | ( | const orow_iterator< Type, OutStrmBuf > & | __obj | ) | [inline] |
Copy constructor.
void rpa::orow_iterator< Type, OutStrmBuf >::check | ( | void | ) | const [inline] |
const char_type* rpa::orow_iterator< Type, OutStrmBuf >::delimiter | ( | void | ) | [inline] |
The delimiter may be NULL, equivalent to an empty string.
orow_iterator& rpa::orow_iterator< Type, OutStrmBuf >::operator * | ( | ) | [inline] |
orow_iterator& rpa::orow_iterator< Type, OutStrmBuf >::operator++ | ( | int | ) | [inline] |
orow_iterator& rpa::orow_iterator< Type, OutStrmBuf >::operator++ | ( | ) | [inline] |
orow_iterator& rpa::orow_iterator< Type, OutStrmBuf >::operator= | ( | const Type & | __value | ) | [inline] |
Writes value to underlying ostream using operator<<. If constructed with delimiter string, writes delimiter to ostream.
ostream_type& rpa::orow_iterator< Type, OutStrmBuf >::stream | ( | void | ) | [inline] |
OutStrmBuf* rpa::orow_iterator< Type, OutStrmBuf >::strmbuf | ( | void | ) | [inline] |
ostream_iterator_t rpa::orow_iterator< Type, OutStrmBuf >::to_ostream_iterator | ( | void | ) | [inline] |
Converts to a plain authentic std::ostream_iterator. NOTE: We must create the class orow_iterator, only because std::ostream_iterator has no accessors.
ostream_type* rpa::orow_iterator< Type, OutStrmBuf >::_M_stream [private] |
const char_type* rpa::orow_iterator< Type, OutStrmBuf >::_M_string [private] |
OutStrmBuf* rpa::orow_iterator< Type, OutStrmBuf >::_M_strmbuf [private] |