1#ifndef DUNE_FEM_GRIDPART_COMMON_DEFAULTGRIDPARTENTITY_HH
2#define DUNE_FEM_GRIDPART_COMMON_DEFAULTGRIDPARTENTITY_HH
8#include <dune/grid/common/entity.hh>
9#include <dune/grid/common/gridenums.hh>
20 template<
int codim,
int dim,
class Gr
idFamily >
21 class DefaultGridPartEntity
24 typedef typename std::remove_const< GridFamily >::type::Traits Traits;
27 static const int codimension = codim;
28 static const int dimension = dim;
29 static const int mydimension = dimension - codimension;
33 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
42 template<
int dim,
class Gr
idFamily >
43 class DefaultGridPartEntity< 0, dim, GridFamily >
46 typedef typename std::remove_const< GridFamily >::type::Traits Traits;
49 static const int codimension = 0;
50 static const int dimension = dim;
51 static const int mydimension = dimension - codimension;
53 typedef typename Traits::template Codim< codimension >::LocalGeometry LocalGeometry;
54 typedef typename Traits::template Codim< codimension >::Entity Entity;
56 typedef typename Traits::HierarchicIterator HierarchicIterator;
60 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
65 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
68 Entity father ()
const
70 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
73 bool hasFather ()
const
75 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
78 const LocalGeometry &geometryInFather ()
const
80 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
83 HierarchicIterator hbegin (
int maxLevel )
const
85 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
88 HierarchicIterator hend (
int maxLevel )
const
90 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
93 bool isRegular ()
const
95 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
100 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
103 bool mightVanish ()
const
105 DUNE_THROW( InvalidStateException,
"Trying to access hierarchy information from a grid part." );
A few common exception classes.
#define DUNE_THROW(E, m)
Definition: exceptions.hh:218
Dune namespace.
Definition: alignedallocator.hh:13