PrevUpHomeNext

Struct template segment_iterator

boost::segment_iterator

Synopsis

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

template<typename It, typename Segmenter> 
struct segment_iterator {
  // construct/copy/destruct
  segment_iterator();
  segment_iterator(It, It, It, Segmenter);

  // public member functions
   BOOST_CONCEPT_ASSERT((InputIterator< It >));
   BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >));
   BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Segmenter::input_type >));
  It base() const;

  // private member functions
  iterator_range< It > dereference() const;
  void increment();
  void decrement();
  bool equal(const segment_iterator &) const;
};

Description

Iterator adapter that wraps a range to make it appear like a range of subranges, each subrange being a step of a Segmenter invocation.

segment_iterator public construct/copy/destruct

  1. segment_iterator();
  2. segment_iterator(It begin_, It end_, It pos_, Segmenter c_);

segment_iterator public member functions

  1.  BOOST_CONCEPT_ASSERT((InputIterator< It >));
  2.  BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >));
  3.  BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Segmenter::input_type >));
  4. It base() const;

segment_iterator private member functions

  1. iterator_range< It > dereference() const;
  2. void increment();
  3. void decrement();
  4. bool equal(const segment_iterator & other) const;

PrevUpHomeNext