SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWvostreamIterator< T > Class Template Reference

Writes successive elements onto the output stream from which it was constructed. More...

#include <rw/vstream.h>

Public Member Functions

 RWvostreamIterator (RWvostream &s)
 
RWvostreamIteratoroperator* ()
 
RWvostreamIteratoroperator++ ()
 
RWvostreamIteratoroperator++ (int)
 
RWvostreamIteratoroperator= (const T &value)
 

Detailed Description

template<typename T>
class RWvostreamIterator< T >

Class RWvostreamIterator writes (using operator<<) successive elements onto the output stream from which it was constructed. It is not possible to get a value out of the output iterator. Its only use is as an output iterator in situations like the following.

while (first != last) {
*result++ = *first++;
}

Constructor & Destructor Documentation

template<typename T>
RWvostreamIterator< T >::RWvostreamIterator ( RWvostream s)
inline

Constructs an iterator that will insert data to the stream s.

Member Function Documentation

template<typename T>
RWvostreamIterator& RWvostreamIterator< T >::operator* ( void  )
inline

Returns a reference to self.

template<typename T>
RWvostreamIterator& RWvostreamIterator< T >::operator++ ( )
inline

Returns a reference to self.

template<typename T>
RWvostreamIterator& RWvostreamIterator< T >::operator++ ( int  )
inline

Returns a reference to self.

template<typename T>
RWvostreamIterator& RWvostreamIterator< T >::operator= ( const T &  value)
inline

Inserts value onto the underlying stream and Returns a reference to self.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.