SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
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>

Inherits iterator< std::output_iterator_tag, void, void, void, void >.

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 © 2016 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.