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

Iterator which ever circles through a range. More...

#include <ever_circling_iterator.hpp>

Inheritance diagram for boost::geometry::ever_circling_iterator< Iterator >:
Collaboration diagram for boost::geometry::ever_circling_iterator< Iterator >:

Public Member Functions

 ever_circling_iterator (Iterator begin, Iterator end, bool skip_first=false)
 
 ever_circling_iterator (Iterator begin, Iterator end, Iterator start, bool skip_first=false)
 
void moveto (Iterator it)
 Navigate to a certain position, should be in [start . More...
 
 operator Iterator () const
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename Iterator>
struct boost::geometry::ever_circling_iterator< Iterator >

Iterator which ever circles through a range.

Template Parameters
Iteratoriterator on which this class is based on

If the iterator arrives at range.end() it restarts from the beginning. So it has to be stopped in another way. Don't call for(....; it++) because it will turn in an endless loop

Note
Name inspired on David Bowie's "Chant Of The Ever Circling Skeletal Family"

Constructor & Destructor Documentation

template<typename Iterator >
boost::geometry::ever_circling_iterator< Iterator >::ever_circling_iterator ( Iterator  begin,
Iterator  end,
bool  skip_first = false 
)
inlineexplicit

References boost::asio::begin.

template<typename Iterator >
boost::geometry::ever_circling_iterator< Iterator >::ever_circling_iterator ( Iterator  begin,
Iterator  end,
Iterator  start,
bool  skip_first = false 
)
inlineexplicit

Member Function Documentation

template<typename Iterator >
void boost::geometry::ever_circling_iterator< Iterator >::moveto ( Iterator  it)
inline

Navigate to a certain position, should be in [start .

. end], if at end it will circle again.

References boost::geometry::detail::wkt::check_end(), and boost::it.

boost::geometry::detail::iterators::iterator_base< ever_circling_iterator< Iterator > , Iterator, TraversalFlag >::operator Iterator ( ) const
inlineinherited

Friends And Related Function Documentation

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

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