Go to the documentation of this file.
3 #ifndef DUNE_GRID_HOSTGRIDACCESS_HH
4 #define DUNE_GRID_HOSTGRIDACCESS_HH
16 template<
class HostGr
id,
class CoordFunction,
class Allocator >
26 template<
class Gr
id >
27 struct HostGridAccess;
38 template<
class HG,
class CoordFunction,
class Allocator >
84 template<
class Entity >
85 static const typename Codim< Entity::codimension >::HostEntity &
88 return hostEntity< Entity::codimension >( entity );
92 static const typename Codim< codim >::HostEntity &
95 return Grid::getRealImplementation( entity ).hostEntity();
98 template<
class HostIntersection >
99 static const HostIntersection &
102 return Grid::getRealImplementation( intersection ).hostIntersection();
131 template<
int codim >
160 template<
class Entity >
161 static const typename Codim< Entity::codimension >::HostEntity &
164 return hostEntity< Entity::codimension >( entity );
167 template<
int codim >
168 static const typename Codim< codim >::HostEntity &
171 return *Grid::getRealImplementation( entity ).hostEntity_;
174 static const HostLeafIntersection &
177 return *Grid::getRealImplementation( intersection ).hostIterator_;
180 static const HostLevelIntersection &
183 return *Grid::getRealImplementation( intersection ).hostIterator_;
189 #endif // #ifndef DUNE_GRID_HOSTGRIDACCESS_HH
Grid::Traits::LevelIntersection LevelIntersection
type of the IdGrid level intersection
Definition: hostgridaccess.hh:144
static const HostLevelIntersection & hostIntersection(const LevelIntersection &intersection)
Definition: hostgridaccess.hh:181
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:73
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: albertagrid/dgfparser.hh:26
Include standard header files.
Definition: agrid.hh:59
HG HostGrid
type of HostGrid
Definition: hostgridaccess.hh:123
GeometryGrid< HG, CoordFunction, Allocator > Grid
Definition: hostgridaccess.hh:44
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:37
Grid::Traits::LeafIntersection LeafIntersection
type of the GeometryGrid leaf intersection
Definition: hostgridaccess.hh:66
Definition: geometrygrid/intersection.hh:19
static const HostLeafIntersection & hostIntersection(const LeafIntersection &intersection)
Definition: hostgridaccess.hh:175
Provides a meta grid that is identical to its host.
Definition: identitygrid.hh:33
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:155
const HostGrid & hostGrid() const
obtain constant reference to the host grid
Definition: geometrygrid/grid.hh:628
Wrapper class for entities.
Definition: common/entity.hh:61
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:93
Grid::template Codim< codim >::Entity Entity
type of the GeometryGrid entity
Definition: hostgridaccess.hh:59
HostGrid::Traits::LevelIntersection HostLevelIntersection
type of the host level intersection
Definition: hostgridaccess.hh:149
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:138
Grid::HostGrid HostGrid
type of HostGrid
Definition: hostgridaccess.hh:47
Grid::Traits::LeafIntersection LeafIntersection
type of the IdGrid leaf intersection
Definition: hostgridaccess.hh:142
static const Codim< codim >::HostEntity & hostEntity(const typename Codim< codim >::Entity &entity)
Definition: hostgridaccess.hh:169
static const HostGrid & hostGrid(const Grid &grid)
Get underlying HostGrid.
Definition: hostgridaccess.hh:79
static const HostIntersection & hostIntersection(const Intersection< const Grid, GeoGrid::Intersection< const Grid, HostIntersection > > &intersection)
Definition: hostgridaccess.hh:100
IdentityGrid< HG > Grid
Definition: hostgridaccess.hh:120
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:465
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:71
HostGrid::template Codim< codim >::Entity HostEntity
type of the host entity
Definition: hostgridaccess.hh:62
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition: identitygrid.hh:420
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:162
static const Codim< Entity::codimension >::HostEntity & hostEntity(const Entity &entity)
Definition: hostgridaccess.hh:86
HostGrid::Traits::LeafIntersection HostLeafIntersection
type of the host leaf intersection
Definition: hostgridaccess.hh:147
Grid::template Codim< codim >::Entity Entity
type of the IdGrid entity
Definition: hostgridaccess.hh:135
Grid::Traits::LevelIntersection LevelIntersection
type of the GeometryGrid level intersection
Definition: hostgridaccess.hh:68
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:460
grid wrapper replacing the geometries
Definition: declaration.hh:10