Dune Core Modules (2.6.0)
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_)
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
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
C Container
The type of container we are an iterator for.
Definition: genericiterator.hh:168
T Value
The value type of the iterator.
Definition: genericiterator.hh:175
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
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 26, 23:30, 2024)