|
dune-common 2.8.0
|
Loading...
Searching...
No Matches
genericiterator.hh
Go to the documentation of this file.
152 friend class GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade>;
153 friend class GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade>;
155 typedef GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade> MutableIterator;
156 typedef GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade> ConstIterator;
209 GenericIterator(const MutableIterator& other) : container_(other.container_), position_(other.position_)
221 GenericIterator(const ConstIterator& other) : container_(other.container_), position_(other.position_)
This file implements iterator facade classes for writing stl conformant iterators.
STL namespace.
Get the 'const' version of a reference to a mutable object.
Definition genericiterator.hh:85
get the 'mutable' version of a reference to a const object
Definition genericiterator.hh:114
Generic class for stl-conforming iterators for container classes with operator[].
Definition genericiterator.hh:151
GenericIterator(const MutableIterator &other)
Copy constructor.
Definition genericiterator.hh:209
bool equals(const MutableIterator &other) const
Definition genericiterator.hh:225
Reference elementAt(DifferenceType i) const
Definition genericiterator.hh:249
GenericIterator(const ConstIterator &other)
Copy constructor.
Definition genericiterator.hh:221
GenericIterator(Container &cont, DifferenceType pos)
Constructor.
Definition genericiterator.hh:198
D DifferenceType
The type of the difference between two positions.
Definition genericiterator.hh:180
R Reference
The type of the reference to the values accessed.
Definition genericiterator.hh:185
DifferenceType distanceTo(const MutableIterator &other) const
Definition genericiterator.hh:257
C Container
The type of container we are an iterator for.
Definition genericiterator.hh:168
DifferenceType distanceTo(const ConstIterator &other) const
Definition genericiterator.hh:263
bool equals(const ConstIterator &other) const
Definition genericiterator.hh:230
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:432
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8