3#ifndef DUNE_ALBERTA_ENTITY_HH
4#define DUNE_ALBERTA_ENTITY_HH
20 template<
int codim,
class Gr
id >
21 class AlbertaGridEntityPointer;
23 template<
int codim,
class Gr
id,
bool leafIterator >
24 class AlbertaGridTreeIterator;
26 template<
class Gr
id >
27 class AlbertaGridHierarchicIterator;
29 template<
class Gr
id >
30 class AlbertaGridLeafIntersection;
32 template<
class Gr
id >
33 class AlbertaGridLeafIntersectionIterator;
44 template<
int codim,
int dim,
class Gr
id >
96 GeometryType
type ()
const;
160 template<
int dim,
class Gr
id >
179 template<
int codim >
187 typedef typename Grid::template Codim< 0 >::EntitySeed
EntitySeed;
188 typedef typename Grid::template Codim< 0 >::Geometry
Geometry;
190 typedef typename Grid::Traits::template Codim< 0 >::GeometryImpl
GeometryImpl;
211 int boundaryId ()
const;
217 GeometryType
type ()
const;
228 template<
int codim >
249 for (
int i=n-
k+1; i<=n; i++)
251 for (
long i=2; i<=
k; i++)
267 template<
int codim >
282 if(
grid().maxLevel() == 0 )
297 bool isLeaf ()
const;
305 return (this->
level()>0);
316 LocalGeometry geometryInFather ()
const;
322 HierarchicIterator hbegin (
int maxlevel)
const;
325 HierarchicIterator hend (
int maxlevel)
const;
331 bool mightVanish ()
const;
335 bool hasBoundaryIntersections ()
const ;
341 bool equals (
const This &i )
const;
376 template<
int codim >
#define ALBERTA
Definition albertaheader.hh:27
provides a wrapper for ALBERTA's el_info structure
PartitionType
Attributes used in the generic overlap model.
Definition gridenums.hh:28
Include standard header files.
Definition agrid.hh:60
[ provides Dune::Grid ]
Definition agrid.hh:140
EntityPointer implementation for AlbertaGrid.
Definition albertagrid/entitypointer.hh:29
Definition treeiterator.hh:182
Definition hierarchiciterator.hh:29
Definition albertagrid/intersection.hh:103
Definition albertagrid/intersectioniterator.hh:25
Definition albertagrid/entity.hh:47
void clearElement()
Definition entity.cc:68
int twist() const
obtain twist
Definition albertagrid/entity.hh:132
ALBERTA EL_INFO * getElInfo() const
needed for the LevelIterator and LeafIterator
Definition entity.cc:60
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/entity.hh:68
int level() const
level of this element
Definition entity.cc:92
void setElement(const ElementInfo &elementInfo, int subEntity)
Definition entity.cc:76
EntitySeed seed() const
obtain entity seed
Definition albertagrid/entity.hh:99
PartitionType partitionType() const
return partition type of this entity
Definition entity.cc:38
Grid::template Codim< codim >::Geometry Geometry
Definition albertagrid/entity.hh:70
void setEntity(const This &other)
Definition entity.cc:85
const ElementInfo & elementInfo() const
Definition albertagrid/entity.hh:108
Geometry geometry() const
geometry of this entity
Definition entity.cc:101
static const int dimension
Definition albertagrid/entity.hh:58
static const int codimension
Definition albertagrid/entity.hh:59
const Grid & grid() const
obtain a reference to the grid
Definition albertagrid/entity.hh:120
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition albertagrid/entity.hh:69
static const int mydimension
Definition albertagrid/entity.hh:60
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition albertagrid/entity.hh:126
Alberta::ElementInfo< dimension > ElementInfo
Definition albertagrid/entity.hh:72
GeometryType type() const
type of geometry of this entity
Definition entity.cc:112
bool equals(const This &other) const
equality of entities
Definition entity.cc:46
AlbertaGridEntity()
Definition entity.cc:30
Definition albertagrid/entity.hh:64
Grid::template Codim< cd >::Entity Entity
Definition albertagrid/entity.hh:65
Definition albertagrid/entity.hh:163
Grid::HierarchicIterator HierarchicIterator
Definition albertagrid/entity.hh:192
EntitySeed seed() const
obtain entity seed
Definition albertagrid/entity.hh:220
Grid::Traits::template Codim< 0 >::GeometryImpl GeometryImpl
Definition albertagrid/entity.hh:190
unsigned int subEntities(unsigned int codim) const
Obtain the number of subentities of a given codimension.
Definition albertagrid/entity.hh:242
int count() const
Definition albertagrid/entity.hh:229
const ElementInfo & elementInfo() const
Definition albertagrid/entity.hh:346
int twist() const
obtain twist
Definition albertagrid/entity.hh:370
Grid::template Codim< 0 >::Geometry Geometry
Definition albertagrid/entity.hh:188
bool hasFather() const
returns true if father entity exists
Definition albertagrid/entity.hh:303
Grid::template Codim< 0 >::Entity Entity
Definition albertagrid/entity.hh:186
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition albertagrid/entity.hh:364
int twist(int i) const
obtain twist of a subentity
Definition albertagrid/entity.hh:377
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition albertagrid/entity.hh:280
Alberta::ElementInfo< dimension > ElementInfo
Definition albertagrid/entity.hh:197
Grid::template Codim< 0 >::EntitySeed EntitySeed
Definition albertagrid/entity.hh:187
AlbertaGridLevelIntersectionIterator ilevelend() const
Definition albertagrid/entity.hh:291
Grid::template Codim< 0 >::LocalGeometry LocalGeometry
Definition albertagrid/entity.hh:189
const Grid & grid() const
obtain a reference to the grid
Definition albertagrid/entity.hh:358
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition albertagrid/entity.hh:194
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition albertagrid/entity.hh:195
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/entity.hh:183
Definition albertagrid/entityseed.hh:16
Wrapper class for entities.
Definition common/entity.hh:62
Default Implementations for EntityImp.
Definition common/entity.hh:544
Grid abstract base class.
Definition common/grid.hh:373
GridFamily::Traits::HierarchicIterator HierarchicIterator
A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine,...
Definition common/grid.hh:486
@ dimensionworld
The dimension of the world the grid lives in.
Definition common/grid.hh:393