3#ifndef DUNE_GEOGRID_HOSTCORNERS_HH
4#define DUNE_GEOGRID_HOSTCORNERS_HH
8#include <dune/grid/common/entity.hh>
18 template<
class HostEntity >
21 typedef typename HostEntity::Geometry HostGeometry;
24 typedef typename HostGeometry::GlobalCoordinate Coordinate;
26 explicit HostCorners (
const HostEntity &hostEntity )
27 : hostGeometry_( hostEntity.geometry() )
32 return hostGeometry_.type();
35 Coordinate operator[] (
int i )
const
37 return hostGeometry_.corner( i );
40 std::size_t size ()
const
42 return hostGeometry_.corners();
46 HostGeometry hostGeometry_;
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
Dune namespace.
Definition: alignedallocator.hh:10
A unique label for each type of element that can occur in a grid.