Boost.Geometry    Boost C++ Libraries
Public Types | Public Member Functions | Friends
boost::geometry::closing_iterator< Range > Struct Template Reference

Iterator which iterates through a range, but adds first element at end of the range. More...

List of all members.

Public Types

typedef
boost::range_difference< Range >
::type 
difference_type

Public Member Functions

 closing_iterator (Range &range)
 Constructor including the range it is based on.
 closing_iterator (Range &range, bool)
 Constructor to indicate the end of a range.
 closing_iterator ()
 Default constructor.

Friends

class boost::iterator_core_access

Detailed Description

template<typename Range>
struct boost::geometry::closing_iterator< Range >

Iterator which iterates through a range, but adds first element at end of the range.

Template Parameters:
Rangerange on which this class is based on
Note:
It's const iterator treating the Range as one containing non-mutable elements. For both "closing_iterator<Range> and "closing_iterator<Range const> const reference is always returned when dereferenced.
This class is normally used from "closeable_view" if Close==true

Member Typedef Documentation

template<typename Range >
typedef boost::range_difference<Range>::type boost::geometry::closing_iterator< Range >::difference_type

Constructor & Destructor Documentation

template<typename Range >
boost::geometry::closing_iterator< Range >::closing_iterator ( Range &  range) [explicit]

Constructor including the range it is based on.

template<typename Range >
boost::geometry::closing_iterator< Range >::closing_iterator ( Range &  range,
bool   
) [explicit]

Constructor to indicate the end of a range.

template<typename Range >
boost::geometry::closing_iterator< Range >::closing_iterator ( ) [explicit]

Default constructor.


Friends And Related Function Documentation

template<typename Range >
friend class boost::iterator_core_access [friend]

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen