5#ifndef DUNE_GEOGRID_HOSTCORNERS_HH
6#define DUNE_GEOGRID_HOSTCORNERS_HH
10#include <dune/grid/common/entity.hh>
20 template<
class HostEntity >
23 typedef typename HostEntity::Geometry HostGeometry;
26 typedef typename HostGeometry::GlobalCoordinate Coordinate;
28 explicit HostCorners (
const HostEntity &hostEntity )
29 : hostGeometry_( hostEntity.geometry() )
34 return hostGeometry_.type();
37 Coordinate operator[] (
int i )
const
39 return hostGeometry_.corner( i );
42 std::size_t size ()
const
44 return hostGeometry_.corners();
48 HostGeometry hostGeometry_;
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
Dune namespace.
Definition: alignedallocator.hh:13
A unique label for each type of element that can occur in a grid.