Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::gen::ostream_iterator Class Template Reference

This is an alternative to std::ostream_iterator. More...

#include <more/gen/iterator.h>

List of all members.

Public Types

Public Methods


Detailed Description

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
class more::gen::ostream_iterator< Value, Char, Traits >

This is an alternative to std::ostream_iterator.

This iterator places the string argument between value rather than after. The rationale is that this is a common case, and a separator at the end can easily be inserted added, but redundant separator can not be removed from the stream. This class also extends std::ostream_iterator by allowing the width and precision to be specified.


Member Typedef Documentation

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef Char more::gen::ostream_iterator::char_type
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef std::ptrdiff_t more::gen::ostream_iterator::difference_type
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef std::output_iterator_tag more::gen::ostream_iterator::iterator_category
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef std::basic_ostream<Char, Traits> more::gen::ostream_iterator::ostream_type
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef void more::gen::ostream_iterator::pointer
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef void more::gen::ostream_iterator::reference
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef Traits more::gen::ostream_iterator::traits_type
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
typedef void more::gen::ostream_iterator::value_type
 


Constructor & Destructor Documentation

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
more::gen::ostream_iterator< Value, Char, Traits >::ostream_iterator ostream_type   os,
char const *    sep = "",
int    width = 0,
int    precision = 0
[inline]
 

Construct an iterator which prints values separated with sep to os.

Before each value, set width and precision on os if given.


Member Function Documentation

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
ostream_iterator& more::gen::ostream_iterator< Value, Char, Traits >::operator *   [inline]
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
ostream_iterator& more::gen::ostream_iterator< Value, Char, Traits >::operator++ int    [inline]
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
ostream_iterator& more::gen::ostream_iterator< Value, Char, Traits >::operator++   [inline]
 

template<typename Value, typename Char = char, typename Traits = std::char_traits<Char>>
ostream_iterator& more::gen::ostream_iterator< Value, Char, Traits >::operator= Value const &    value [inline]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:32 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.