3#ifndef DUNE_GRID_ENTITYITERATOR_HH
4#define DUNE_GRID_ENTITYITERATOR_HH
34 template<
int codim,
class Gr
id,
class IteratorImp >
41 using Base::realIterator;
49 realIterator.increment();
57 realIterator.increment();
85 typename std::conditional<
86 std::is_lvalue_reference<
87 decltype(realIterator.dereference())
94 return realIterator.dereference();
110 return this->realIterator.equals(rhs.realIterator);
116 return !this->realIterator.equals(rhs.realIterator);
141 template<
int codim,
class Gr
id,
class IteratorImp >
142 struct iterator_traits<
Dune::EntityIterator< codim, Grid, IteratorImp > >
144 typedef ptrdiff_t difference_type;
145 typedef const typename IteratorImp::Entity value_type;
146 typedef value_type *pointer;
147 typedef value_type &reference;
148 typedef forward_iterator_tag iterator_category;
interface class for an iterator over grid entities
Definition: entityiterator.hh:37
EntityIterator(const IteratorImp &imp)
copy constructor from implementaton
Definition: entityiterator.hh:129
const Entity & operator*() const
Dereferencing operator.
bool operator!=(const EntityIterator &rhs) const
Checks for inequality.
Definition: entityiterator.hh:114
EntityIterator()
default construct (undefined) iterator
Definition: entityiterator.hh:125
EntityIterator & operator++()
prefix increment operator
Definition: entityiterator.hh:47
bool operator==(const EntityIterator &rhs) const
Checks for equality.
Definition: entityiterator.hh:108
const Entity & operator->() const
Pointer operator.
Wrapper class for pointers to entities.
Definition: entitypointer.hh:115
GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition: entitypointer.hh:434
Wrapper and interface class for a static iterator (EntityPointer)
Dune namespace.
Definition: alignment.hh:11
pointer_or_proxy_holder handle_proxy_member_access(T &&t)
Transparent support for providing member access to both lvalues and rvalues (temporary proxies).
Static tag representing a codimension.
Definition: dimension.hh:22