MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
mgx::util::CircIterator< ForwardIterator > Class Template Reference

Creates a circular iterator from a range of forward iterators. More...

#include <CircIterator.hpp>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef std::iterator_traits
< ForwardIterator >
::value_type 
value_type
 
typedef std::iterator_traits
< ForwardIterator >
::difference_type 
difference_type
 
typedef std::iterator_traits
< ForwardIterator >::pointer 
pointer
 
typedef std::iterator_traits
< ForwardIterator >::reference 
reference
 

Public Member Functions

 CircIterator (const ForwardIterator &f, const ForwardIterator &l, const ForwardIterator &c)
 
 CircIterator (const ForwardIterator &f, const ForwardIterator &l)
 
 CircIterator (const CircIterator &copy)
 
CircIteratoroperator++ ()
 
CircIterator operator++ (int)
 
reference operator* ()
 
pointer operator-> ()
 
bool operator== (const ForwardIterator &other) const
 
bool operator== (const CircIterator &other) const
 
bool operator!= (const ForwardIterator &other) const
 
bool operator!= (const CircIterator &other) const
 
ForwardIterator base () const
 

Protected Attributes

ForwardIterator first
 
ForwardIterator last
 
ForwardIterator init
 
ForwardIterator cur
 

Detailed Description

template<typename ForwardIterator>
class mgx::util::CircIterator< ForwardIterator >

Creates a circular iterator from a range of forward iterators.


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