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::BaseIterator< Iterator, Derived > Struct Template Reference

Public Types

typedef Iterator base_iterator
 
typedef std::iterator_traits
< Iterator >::difference_type 
difference_type
 Type of the difference between two iterators.
 

Public Member Functions

 BaseIterator ()
 Default constructor.
 
 BaseIterator (const base_iterator &i)
 Conversion from the base iterator.
 
 BaseIterator (const BaseIterator &other)
 Copy constructor.
 
base_iterator base () const
 Direct access to the base iterator.
 
1 - Forward/input iterator methods
bool operator== (const Derived &other) const
 
bool operator!= (const Derived &other) const
 
Derived & operator= (const Derived &copy)
 Assignment operator.
 
Derived & operator++ ()
 Prefix increment operator.
 
Derived & operator++ (int)
 Postfix increment operator.
 
2 - Bidirectional iterator methods
Derived & operator-- ()
 Prefix decrement operator.
 
Derived & operator-- (int)
 Postfix decrement operator.
 
3 - Random access methods
Derived & operator+= (difference_type n)
 In-place random increment operator.
 
Derived & operator-= (difference_type n)
 In-place random decrement operator.
 
bool operator< (const Derived &other) const
 
bool operator> (const Derived &other) const
 
bool operator<= (const Derived &other) const
 
bool operator>= (const Derived &other) const
 

Protected Attributes

base_iterator it
 Underlying iterator.
 

Friends

Functions for random access iterators
Derived operator+ (const Derived &it, difference_type n)
 
Derived operator+ (difference_type n, const Derived &it)
 
Derived operator- (const Derived &it, difference_type n)
 
Derived operator- (difference_type n, const Derived &it)
 
difference_type operator- (const Derived &last, const Derived &first)
 Distance between two iterators.
 

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