9 #ifndef ThePEG_DIterator_H
10 #define ThePEG_DIterator_H
17 template <
typename BaseIterator>
34 typedef std::iterator_traits<BaseIterator>
Traits;
40 typedef typename Traits::value_type
PtrType;
46 typedef typename PtrTraits::pointer
pointer;
PtrTraits::pointer pointer
Forward typedef from underlying iterator.
DIterator(const DIterator &pi)
Copy constructor.
DIterator operator+(int n)
Get an iterator n steps forward.
bool operator>=(const DIterator &pi)
Test for greater or equal.
bool operator<(const BaseIterator &bi)
Test for less.
DIterator & operator=(const DIterator &pi)
Standard assignment operator.
bool operator<=(const BaseIterator &bi)
Test for less or equal.
BaseIterator i
The underlying standard iterator.
bool operator>(const BaseIterator &bi)
Test for greater.
bool operator!=(const DIterator &pi)
Test for inequality.
This is the main namespace within which all identifiers in ThePEG are declared.
bool operator>=(const BaseIterator &bi)
Test for greater or equal.
pointer operator->() const
Select member from the pointer referred to by the underlying iterator.
bool operator>(const DIterator &pi)
Test for greater.
bool operator<(const DIterator &pi)
Test for less.
difference_type operator-(const DIterator &pi)
Return the distance to the given iterator.
DIterator & operator=(const BaseIterator &pi)
Assignment from a a normal iterator.
DIterator operator-(int n)
Get an iterator n steps backward.
Traits::value_type PtrType
Forward typedef from underlying iterator.
reference operator*() const
Dereference the pointer referred to by the underlying iterator.
bool operator!=(const BaseIterator &bi)
Test for inequality.
reference operator[](difference_type n)
Select a pointer with the given index and return a reference to the object pointed to...
DIterator & operator+=(int n)
Jump forward n steps.
Traits::difference_type difference_type
Forward typedef from underlying iterator.
bool operator==(const BaseIterator &bi)
Test for equality.
DIterator & operator++()
Pre increment the underlying iterator.
DIterator(const BaseIterator &in)
Constructor from a normal iterator.
bool operator==(const DIterator &pi)
Test for equality.
PtrTraits::reference reference
Forward typedef from underlying iterator.
DIterator & operator--()
Pre decrement the underlying iterator.
DIterator operator++(int)
Post increment the underlying iterator.
std::iterator_traits< PtrType > PtrTraits
Forward typedef from underlying iterator.
DIterator()
The default constructor should never be used.
std::iterator_traits< BaseIterator > Traits
Forward typedef from underlying iterator.
Traits::iterator_category iterator_category
Forward typedef from underlying iterator.
bool operator<=(const DIterator &pi)
Test for less or equal.
DIterator is an iterator adaptor class.
DIterator & operator-=(int n)
Jump backward n steps.
PtrTraits::value_type value_type
Forward typedef from underlying iterator.
DIterator operator--(int)
Post decrement the underlying iterator.