1#ifndef DUNE_FEM_GRIDPART_LEAFGRIDPART_HH
2#define DUNE_FEM_GRIDPART_LEAFGRIDPART_HH
6#include <dune/fem/gridpart/common/capabilities.hh>
7#include <dune/fem/gridpart/common/gridview2gridpart.hh>
18 template<
class Gr
id >
20 :
public GridView2GridPart< typename Grid::LeafGridView, LeafGridPart< Grid > >
22 typedef GridView2GridPart< typename Grid::LeafGridView, LeafGridPart< Grid > > BaseType;
26 typedef typename BaseType::GridType GridType;
31 explicit LeafGridPart ( GridType &grid )
36 LeafGridPart (
const LeafGridPart& other )
41 LeafGridPart& operator= (
const LeafGridPart& ) =
default;
52 GridType &grid () { assert( grid_ );
return *grid_; }
62 namespace GridPartCapabilities
65 template<
class Gr
id >
66 struct hasGrid< LeafGridPart< Grid > >
68 static const bool v =
true;
71 template<
class Gr
id >
72 struct hasSingleGeometryType< LeafGridPart< Grid > >
76 template<
class Gr
id >
77 struct isCartesian< LeafGridPart< Grid > >
81 template<
class Gr
id,
int codim >
82 struct hasEntity< LeafGridPart< Grid >, codim >
86 template<
class Gr
id,
int codim >
87 struct canCommunicate< LeafGridPart< Grid >, codim >
91 template<
class Gr
id >
92 struct isConforming< LeafGridPart< Grid > >
A set of traits classes to store static information about grid implementation.
Grid< dim, dimworld, ct, GridFamily >::LeafGridView leafGridView(const Grid< dim, dimworld, ct, GridFamily > &grid)
leaf grid view for the given grid
Definition: grid.hh:805
Dune namespace.
Definition: alignedallocator.hh:13
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition: capabilities.hh:97
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition: capabilities.hh:58
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: capabilities.hh:27
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: capabilities.hh:48