3 #ifndef DUNE_GRID_ENTITYPOINTER_HH
4 #define DUNE_GRID_ENTITYPOINTER_HH
6 #include <dune/common/iteratorfacades.hh>
90 template<
class Gr
idImp,
class IteratorImp>
97 #if DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
103 GridImp::dimension, GridImp::dimensionworld,
104 typename GridImp::ctype,
105 typename GridImp::GridFamily> ;
123 typedef typename IteratorImp::Entity
Entity;
142 template<
class ItImp >
166 template<
class ItImp >
205 template<
class ItImp >
216 template<
class ItImp >
259 template<
class ItImp >
269 #endif // DUNE_GRID_ENTITYPOINTER_HH
EntityPointer(const Entity &entity)
Templatized constructor from type of entity that this entity pointer points to. This constructor can ...
Definition: common/entitypointer.hh:153
EntityPointer & operator=(const EntityPointer< GridImp, ItImp > &ep)
Definition: common/entitypointer.hh:167
EntityPointer(const typename Entity::Implementation &entityImp)
Constructor from type of entity implementation that this entity pointer points to. This constructor is only used in the EntityDefaultImplementation to implement the method seed() by default when the type of EntitySeed and EntityPointer coniside.
Definition: common/entitypointer.hh:162
EntityPointer(const EntityPointer< GridImp, ItImp > &ep)
Templatized copy constructor from arbitrary IteratorImp. This enables that an EntityPointer can be co...
Definition: common/entitypointer.hh:143
bool operator==(const EntityPointer< GridImp, ItImp > &rhs) const
Checks for equality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer.
Definition: common/entitypointer.hh:206
Wrapper class for pointers to entities.
Definition: common/entitypointer.hh:91
IteratorImp Implementation
Definition: common/entitypointer.hh:108
int level() const
Ask for level of entity. This method is redundant and is only there for efficiency reasons...
Definition: common/entitypointer.hh:235
EntityImp< cd, dim, GridImp > Implementation
Definition: common/entity.hh:73
Implementation realIterator
Definition: common/entitypointer.hh:116
Implementation & impl()
return reference to the real implementation
Definition: common/entitypointer.hh:111
Entity * operator->() const
Pointer operator.
Definition: common/entitypointer.hh:188
bool equals(const EntityPointer< GridImp, ItImp > &rhs) const
Forward equality check to realIterator.
Definition: common/entitypointer.hh:260
Different resources needed by all grid implementations.
Entity & operator*() const
Dereferencing operator.
Definition: common/entitypointer.hh:182
The codimension of this EntityPointer.
Definition: common/entitypointer.hh:127
Definition: common/geometry.hh:24
bool operator!=(const EntityPointer< GridImp, ItImp > &rhs) const
Checks for inequality. Only works for EntityPointers and iterators on the same grid. Due to the conversion operators one can compare all kinds of iterators and EntityPointer.
Definition: common/entitypointer.hh:217
const Implementation & impl() const
return reference to the real implementation
Definition: common/entitypointer.hh:113
IteratorImp::Entity Entity
The Entity that this EntityPointer can point to.
Definition: common/entitypointer.hh:123
Definition: common/entitypointer.hh:120
EntityPointer(const IteratorImp &i)
Copy Constructor from an Iterator implementation.
Definition: common/entitypointer.hh:255