5#ifndef DUNE_GRID_COMMON_ENTITYITERATOR_HH
6#define DUNE_GRID_COMMON_ENTITYITERATOR_HH
30 template<
int codim,
class Gr
id,
class IteratorImp >
57 typedef typename Grid::template Codim< codim >::Entity
Entity;
60 typedef typename std::conditional<
61 std::is_lvalue_reference<
104 typename std::conditional<
105 std::is_lvalue_reference<
117 decltype(handle_proxy_member_access(
realIterator.dereference()))
120 return handle_proxy_member_access(
realIterator.dereference());
160 template<
int codim,
class Gr
id,
class IteratorImp >
161 struct iterator_traits<
Dune::EntityIterator< codim, Grid, IteratorImp > >
Include standard header files.
Definition: agrid.hh:60
interface class for an iterator over grid entities
Definition: entityiterator.hh:32
IteratorImp Implementation
type of underlying implementation
Definition: entityiterator.hh:42
Implementation & impl()
access to the underlying implementation
Definition: entityiterator.hh:49
IteratorImp realIterator
Definition: entityiterator.hh:34
Grid::template Codim< codim >::Entity Entity
Definition: entityiterator.hh:57
EntityIterator(const IteratorImp &imp)
copy constructor from implementaton
Definition: entityiterator.hh:148
const Entity & operator*() const
Dereferencing operator.
bool operator!=(const EntityIterator &rhs) const
Checks for inequality.
Definition: entityiterator.hh:133
EntityIterator()
default construct (undefined) iterator
Definition: entityiterator.hh:144
EntityIterator & operator++()
prefix increment operator
Definition: entityiterator.hh:69
const Implementation & impl() const
access to the underlying implementation
Definition: entityiterator.hh:55
std::conditional< std::is_lvalue_reference< decltype(realIterator.dereference())>::value, constEntity &, Entity >::type Reference
Type of the reference used when derefencing the Ptr.
Definition: entityiterator.hh:66
bool operator==(const EntityIterator &rhs) const
Checks for equality.
Definition: entityiterator.hh:127
const Entity & operator->() const
Pointer operator.
const IteratorImp::Entity value_type
Definition: entityiterator.hh:164
forward_iterator_tag iterator_category
Definition: entityiterator.hh:167
ptrdiff_t difference_type
Definition: entityiterator.hh:163
value_type & reference
Definition: entityiterator.hh:166
value_type * pointer
Definition: entityiterator.hh:165