Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::closing_iterator< Range > Struct Template Reference

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

#include <closing_iterator.hpp>

Inheritance diagram for boost::geometry::closing_iterator< Range >:
Collaboration diagram for boost::geometry::closing_iterator< Range >:

Public Types

typedef std::ptrdiff_t difference_type
 

Public Member Functions

 closing_iterator (Range &range)
 Constructor including the range it is based on. More...
 
 closing_iterator (Range &range, bool)
 Constructor to indicate the end of a range. More...
 
 closing_iterator ()
 Default constructor. More...
 
closing_iterator< Range > & operator= (closing_iterator< Range > const &source)
 

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 std::ptrdiff_t boost::geometry::closing_iterator< Range >::difference_type

Constructor & Destructor Documentation

template<typename Range>
boost::geometry::closing_iterator< Range >::closing_iterator ( Range &  range)
inlineexplicit

Constructor including the range it is based on.

template<typename Range>
boost::geometry::closing_iterator< Range >::closing_iterator ( Range &  range,
bool   
)
inlineexplicit

Constructor to indicate the end of a range.

template<typename Range>
boost::geometry::closing_iterator< Range >::closing_iterator ( )
inlineexplicit

Default constructor.

Member Function Documentation

template<typename Range>
closing_iterator<Range>& boost::geometry::closing_iterator< Range >::operator= ( closing_iterator< Range > const &  source)
inline

Friends And Related Function Documentation

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

The documentation for this struct was generated from the following file: