5 #ifndef DUNE_GRID_HOSTGRIDACCESS_HH 6 #define DUNE_GRID_HOSTGRIDACCESS_HH 18 template<
class HostGr
id,
class CoordFunction,
class Allocator >
28 template<
class Gr
id >
29 struct HostGridAccess;
40 template<
class HG,
class CoordFunction,
class Allocator >
86 template<
class Entity >
87 static const typename Codim< Entity::codimension >::HostEntity &
90 return hostEntity< Entity::codimension >( entity );
94 static const typename Codim< codim >::HostEntity &
97 return entity.impl().hostEntity();
100 template<
class HostIntersection >
101 static const HostIntersection &
104 return intersection.impl().hostIntersection();
133 template<
int codim >
162 template<
class Entity >
163 static const typename Codim< Entity::codimension >::HostEntity &
166 return hostEntity< Entity::codimension >( entity );
169 template<
int codim >
170 static const typename Codim< codim >::HostEntity &
173 return *entity.impl().hostEntity_;
176 static const HostLeafIntersection &
179 return *intersection.impl().hostIterator_;
182 static const HostLevelIntersection &
185 return *intersection.impl().hostIterator_;
191 #endif // #ifndef DUNE_GRID_HOSTGRIDACCESS_HH Grid::Traits::LeafIntersection LeafIntersection
type of the IdGrid leaf intersection
Definition: hostgridaccess.hh:144
Definition: geometrygrid/intersection.hh:21
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:140
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:88
GridFamily::Traits::LeafIntersection LeafIntersection
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimensio...
Definition: common/grid.hh:456
Grid::HostGrid HostGrid
type of HostGrid
Definition: hostgridaccess.hh:49
IdentityGrid< HG > Grid
Definition: hostgridaccess.hh:122
static const HostIntersection & hostIntersection(const Intersection< const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection)
Definition: hostgridaccess.hh:102
HG HostGrid
type of HostGrid
Definition: hostgridaccess.hh:125
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:33
Grid::template Codim< codim >::Entity Entity
type of the GeometryGrid entity
Definition: hostgridaccess.hh:61
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:81
Grid::Traits::LeafIntersection LeafIntersection
type of the GeometryGrid leaf intersection
Definition: hostgridaccess.hh:68
Grid::template Codim< codim >::Entity Entity
type of the IdGrid entity
Definition: hostgridaccess.hh:137
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:151
GeometryGrid< HG, CoordFunction, Allocator > Grid
Definition: hostgridaccess.hh:46
static const HostLeafIntersection & hostIntersection(const LeafIntersection &intersection)
Definition: hostgridaccess.hh:177
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition: identitygrid.hh:415
const HostGrid & hostGrid() const
obtain constant reference to the host grid
Definition: geometrygrid/grid.hh:533
Grid::Traits::LevelIntersection LevelIntersection
type of the IdGrid level intersection
Definition: hostgridaccess.hh:146
Include standard header files.
Definition: agrid.hh:59
GridFamily::Traits::LevelIntersection LevelIntersection
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimensio...
Definition: common/grid.hh:461
grid wrapper replacing the geometriesGeometryGrid wraps another DUNE grid and replaces its geometry b...
Definition: declaration.hh:12
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:64
static const HostLevelIntersection & hostIntersection(const LevelIntersection &intersection)
Definition: hostgridaccess.hh:183
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:171
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:75
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:157
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:95
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:28
Wrapper class for entities.
Definition: common/entity.hh:65
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:73
Grid::Traits::LevelIntersection LevelIntersection
type of the GeometryGrid level intersection
Definition: hostgridaccess.hh:70
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:149
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:164