Dune Core Modules (2.9.0)
genericiterator.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) 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_)
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
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
C Container
The type of container we are an iterator for.
Definition: genericiterator.hh:170
T Value
The value type of the iterator.
Definition: genericiterator.hh:177
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
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)