3#ifndef DUNE_GRID_HOSTGRIDACCESS_HH
4#define DUNE_GRID_HOSTGRIDACCESS_HH
8#include <dune/grid/geometrygrid/intersection.hh>
16 template<
class HostGr
id,
class CoordFunction,
class Allocator >
24 template<
class Gr
id >
36 template<
class HG,
class CoordFunction,
class Allocator >
45 typedef typename Grid::HostGrid HostGrid;
68 typedef typename Grid::Traits::LeafIntersection LeafIntersection;
70 typedef typename Grid::Traits::LevelIntersection LevelIntersection;
73 typedef typename HostGrid::Traits::LeafIntersection HostLeafIntersection;
75 typedef typename HostGrid::Traits::LevelIntersection HostLevelIntersection;
81 static const HostGrid &hostGrid (
const Grid &grid )
83 return grid.hostGrid();
86 template<
class Entity >
87 static const typename Codim< Entity::codimension >::HostEntity &
88 hostEntity (
const Entity &entity )
90 return hostEntity< Entity::codimension >( entity );
94 static const typename Codim< codim >::HostEntity &
95 hostEntity (
const typename Codim< codim >::Entity &entity )
97 return Grid::getRealImplementation( entity ).hostEntity();
100 template<
class HostIntersection >
101 static const HostIntersection &
102 hostIntersection (
const Intersection<
const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection )
104 return Grid::getRealImplementation( intersection ).hostIntersection();
Wrapper class for entities.
Definition: entity.hh:57
grid wrapper replacing the geometries
Definition: grid.hh:83
Grid abstract base class.
Definition: grid.hh:386
Dune namespace.
Definition: alignment.hh:14
Grid::template Codim< codim >::EntityPointer EntityPointer
type of the GeometryGrid entity pointer
Definition: hostgridaccess.hh:59
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:62
Grid::template Codim< codim >::Entity Entity
type of the GeometryGrid entity
Definition: hostgridaccess.hh:57
HostGrid::template Codim< codim >::EntityPointer HostEntityPointer
type of the host entity pointer
Definition: hostgridaccess.hh:64
provides access to host grid objects
Definition: hostgridaccess.hh:25