MorphoGraphX  2.0-1-227
Public Types | Public Member Functions | Protected Attributes | List of all members
mgx::CircIterator< ForwardIterator > Class Template Reference

#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 ()
 
 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::CircIterator< ForwardIterator >

Creates a circular iterator from a range of forward iterators

Definition at line 24 of file CircIterator.hpp.

Member Typedef Documentation

◆ difference_type

template<typename ForwardIterator >
typedef std::iterator_traits<ForwardIterator>::difference_type mgx::CircIterator< ForwardIterator >::difference_type

Definition at line 28 of file CircIterator.hpp.

◆ iterator_category

template<typename ForwardIterator >
typedef std::forward_iterator_tag mgx::CircIterator< ForwardIterator >::iterator_category

Definition at line 26 of file CircIterator.hpp.

◆ pointer

template<typename ForwardIterator >
typedef std::iterator_traits<ForwardIterator>::pointer mgx::CircIterator< ForwardIterator >::pointer

Definition at line 29 of file CircIterator.hpp.

◆ reference

template<typename ForwardIterator >
typedef std::iterator_traits<ForwardIterator>::reference mgx::CircIterator< ForwardIterator >::reference

Definition at line 30 of file CircIterator.hpp.

◆ value_type

template<typename ForwardIterator >
typedef std::iterator_traits<ForwardIterator>::value_type mgx::CircIterator< ForwardIterator >::value_type

Definition at line 27 of file CircIterator.hpp.

Constructor & Destructor Documentation

◆ CircIterator() [1/4]

template<typename ForwardIterator >
mgx::CircIterator< ForwardIterator >::CircIterator ( )
inline

Definition at line 32 of file CircIterator.hpp.

◆ CircIterator() [2/4]

template<typename ForwardIterator >
mgx::CircIterator< ForwardIterator >::CircIterator ( const ForwardIterator &  f,
const ForwardIterator &  l,
const ForwardIterator &  c 
)
inline

Definition at line 34 of file CircIterator.hpp.

◆ CircIterator() [3/4]

template<typename ForwardIterator >
mgx::CircIterator< ForwardIterator >::CircIterator ( const ForwardIterator &  f,
const ForwardIterator &  l 
)
inline

Definition at line 37 of file CircIterator.hpp.

◆ CircIterator() [4/4]

template<typename ForwardIterator >
mgx::CircIterator< ForwardIterator >::CircIterator ( const CircIterator< ForwardIterator > &  copy)
inline

Definition at line 40 of file CircIterator.hpp.

Member Function Documentation

◆ base()

template<typename ForwardIterator >
ForwardIterator mgx::CircIterator< ForwardIterator >::base ( ) const
inline

Definition at line 83 of file CircIterator.hpp.

◆ operator!=() [1/2]

template<typename ForwardIterator >
bool mgx::CircIterator< ForwardIterator >::operator!= ( const CircIterator< ForwardIterator > &  other) const
inline

Definition at line 79 of file CircIterator.hpp.

◆ operator!=() [2/2]

template<typename ForwardIterator >
bool mgx::CircIterator< ForwardIterator >::operator!= ( const ForwardIterator &  other) const
inline

Definition at line 75 of file CircIterator.hpp.

◆ operator*()

template<typename ForwardIterator >
reference mgx::CircIterator< ForwardIterator >::operator* ( )
inline

Definition at line 60 of file CircIterator.hpp.

◆ operator++() [1/2]

template<typename ForwardIterator >
CircIterator& mgx::CircIterator< ForwardIterator >::operator++ ( )
inline

Definition at line 43 of file CircIterator.hpp.

◆ operator++() [2/2]

template<typename ForwardIterator >
CircIterator mgx::CircIterator< ForwardIterator >::operator++ ( int  )
inline

Definition at line 53 of file CircIterator.hpp.

◆ operator->()

template<typename ForwardIterator >
pointer mgx::CircIterator< ForwardIterator >::operator-> ( )
inline

Definition at line 63 of file CircIterator.hpp.

◆ operator==() [1/2]

template<typename ForwardIterator >
bool mgx::CircIterator< ForwardIterator >::operator== ( const CircIterator< ForwardIterator > &  other) const
inline

Definition at line 71 of file CircIterator.hpp.

◆ operator==() [2/2]

template<typename ForwardIterator >
bool mgx::CircIterator< ForwardIterator >::operator== ( const ForwardIterator &  other) const
inline

Definition at line 67 of file CircIterator.hpp.

Member Data Documentation

◆ cur

template<typename ForwardIterator >
ForwardIterator mgx::CircIterator< ForwardIterator >::cur
protected

Definition at line 88 of file CircIterator.hpp.

◆ first

template<typename ForwardIterator >
ForwardIterator mgx::CircIterator< ForwardIterator >::first
protected

Definition at line 88 of file CircIterator.hpp.

◆ init

template<typename ForwardIterator >
ForwardIterator mgx::CircIterator< ForwardIterator >::init
protected

Definition at line 88 of file CircIterator.hpp.

◆ last

template<typename ForwardIterator >
ForwardIterator mgx::CircIterator< ForwardIterator >::last
protected

Definition at line 88 of file CircIterator.hpp.


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