PrevUpHomeNext

Struct template convert_output_iterator

boost::convert_output_iterator

Synopsis

// In header: <boost/iterator/convert_iterator_fwd.hpp>

template<typename OutputIterator, typename OneManyConverter> 
struct convert_output_iterator {
  // types
  typedef void                                                          difference_type;  
  typedef void                                                          value_type;       
  typedef convert_output_iterator< OutputIterator, OneManyConverter > * pointer;          
  typedef convert_output_iterator< OutputIterator, OneManyConverter > & reference;        
  typedef std::output_iterator_tag                                      iterator_category;

  // construct/copy/destruct
  convert_output_iterator();
  convert_output_iterator(OutputIterator, OneManyConverter);
  convert_output_iterator& 
  operator=(const typename OneManyConverter::input_type &);

  // public member functions
   BOOST_CONCEPT_ASSERT((OutputIteratorConcept< OutputIterator, typename OneManyConverter::output_type >));
   BOOST_CONCEPT_ASSERT((OneManyConverterConcept< OneManyConverter >));
  OutputIterator base() const;
  const convert_output_iterator & operator*() const;
  convert_output_iterator & operator++();
  convert_output_iterator & operator++(int);
  bool operator==(const convert_output_iterator &) const;
  bool operator!=(const convert_output_iterator &) const;

  // private member functions
  OutputIterator & get_out() const;
  OneManyConverter & get_conv() const;
};

Description

Output Iterator adapter that wraps an output iterator to make one that will convert its output before pushing it to the wrapped iterator.

convert_output_iterator public construct/copy/destruct

  1. convert_output_iterator();
  2. convert_output_iterator(OutputIterator pos_, OneManyConverter p_);
  3. convert_output_iterator& 
    operator=(const typename OneManyConverter::input_type & val);

convert_output_iterator public member functions

  1.  BOOST_CONCEPT_ASSERT((OutputIteratorConcept< OutputIterator, typename OneManyConverter::output_type >));
  2.  BOOST_CONCEPT_ASSERT((OneManyConverterConcept< OneManyConverter >));
  3. OutputIterator base() const;
  4. const convert_output_iterator & operator*() const;
  5. convert_output_iterator & operator++();
  6. convert_output_iterator & operator++(int);
  7. bool operator==(const convert_output_iterator & other) const;
  8. bool operator!=(const convert_output_iterator & other) const;

convert_output_iterator private member functions

  1. OutputIterator & get_out() const;
  2. OneManyConverter & get_conv() const;

PrevUpHomeNext