|
dune-common 2.12-git
|
Loading...
Searching...
No Matches
genericiterator.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
154 friend class GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade>;
155 friend class GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade>;
157 typedef GenericIterator<typename std::remove_const<C>::type, typename std::remove_const<T>::type, typename mutable_reference<R>::type, D, IteratorFacade> MutableIterator;
158 typedef GenericIterator<const typename std::remove_const<C>::type, const typename std::remove_const<T>::type, typename const_reference<R>::type, D, IteratorFacade> ConstIterator;
211 GenericIterator(const MutableIterator& other) : container_(other.container_), position_(other.position_)
223 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:87
get the 'mutable' version of a reference to a const object
Definition genericiterator.hh:116
Generic class for stl-conforming iterators for container classes with operator[].
Definition genericiterator.hh:153
GenericIterator(const MutableIterator &other)
Copy constructor.
Definition genericiterator.hh:211
bool equals(const MutableIterator &other) const
Definition genericiterator.hh:227
Reference elementAt(DifferenceType i) const
Definition genericiterator.hh:251
GenericIterator(const ConstIterator &other)
Copy constructor.
Definition genericiterator.hh:223
GenericIterator(Container &cont, DifferenceType pos)
Constructor.
Definition genericiterator.hh:200
D DifferenceType
The type of the difference between two positions.
Definition genericiterator.hh:182
R Reference
The type of the reference to the values accessed.
Definition genericiterator.hh:187
DifferenceType distanceTo(const MutableIterator &other) const
Definition genericiterator.hh:259
C Container
The type of container we are an iterator for.
Definition genericiterator.hh:170
DifferenceType distanceTo(const ConstIterator &other) const
Definition genericiterator.hh:265
bool equals(const ConstIterator &other) const
Definition genericiterator.hh:232
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:435
CRTP-Mixing class for stl conformant iterators of given iterator category.
Definition iteratorfacades.hh:1053
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8