3 #ifndef DUNE_ALBERTA_ENTITY_HH
4 #define DUNE_ALBERTA_ENTITY_HH
20 template<
int codim,
class Gr
id >
23 template<
int codim,
class Gr
id,
bool leafIterator >
26 template<
class Gr
id >
29 template<
class Gr
id >
32 template<
class Gr
id >
44 template<
int codim,
int dim,
class Gr
id >
109 bool equals (
const This &other )
const;
158 template<
int dim,
class Gr
id >
177 template<
int codim >
184 typedef typename Grid::template Codim< 0 >::Entity
Entity;
185 typedef typename Grid::template Codim< 0 >::EntitySeed
EntitySeed;
186 typedef typename Grid::template Codim< 0 >::Geometry
Geometry;
188 typedef typename Grid::Traits::template Codim< 0 >::GeometryImpl
GeometryImpl;
208 int boundaryId ()
const;
225 template<
int codim >
241 template<
int codim >
242 typename Codim< codim >::EntityPointer
subEntity (
int i )
const;
256 if(
grid().maxLevel() == 0 )
260 DUNE_THROW( NotImplemented,
"method ilevelbegin not implemented for AlbertaGrid." );
271 bool isLeaf ()
const;
279 return (this->
level()>0);
290 LocalGeometry geometryInFather ()
const;
305 bool mightVanish ()
const;
309 bool hasBoundaryIntersections ()
const ;
315 bool equals (
const This &i )
const;
350 template<
int codim >
353 return elementInfo().template twist< codim >(
grid().generic2alberta( codim, i ) );
369 #endif // #if HAVE_ALBERTA
371 #endif // #ifndef DUNE_ALBERTA_ENTITY_HH
Grid::template Codim< codim >::Entity Entity
Definition: albertagrid/entity.hh:68
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:332
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition: albertagrid/entity.hh:254
int level() const
level of this element
Definition: entity.cc:84
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:510
int twist() const
obtain twist
Definition: albertagrid/entity.hh:344
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:217
Definition: albertagrid/entity.hh:24
PartitionType partitionType() const
return partition type of this entity
Definition: entity.cc:30
void setEntity(const This &other)
Definition: entity.cc:77
Definition: albertagrid/entity.hh:27
Grid::template Codim< 0 >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:185
static const int dimension
Definition: albertagrid/entity.hh:58
Grid::template Codim< codim >::EntityPointer EntityPointer
Definition: albertagrid/entity.hh:181
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition: albertagrid/entity.hh:193
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:69
Enables iteration over all codim zero entities in a subtree See also the documentation of Dune::Entit...
Definition: common/hierarchiciterator.hh:31
Geometry geometry() const
geometry of this entity
Definition: entity.cc:93
Grid::template Codim< cd >::EntityPointer EntityPointer
Definition: albertagrid/entity.hh:65
Grid::template Codim< 0 >::LocalGeometry LocalGeometry
Definition: albertagrid/entity.hh:187
bool hasFather() const
returns true if father entity exists
Definition: albertagrid/entity.hh:277
Wrapper class for pointers to entities.
Definition: common/entitypointer.hh:91
Grid::Traits::template Codim< 0 >::GeometryImpl GeometryImpl
Definition: albertagrid/entity.hh:188
Grid::template Codim< 0 >::Entity Entity
Definition: albertagrid/entity.hh:184
EntityPointer implementation for AlbertaGrid.
Definition: albertagrid/entity.hh:21
The dimension of the world the grid lives in.
Definition: common/grid.hh:406
static const int codimension
Definition: albertagrid/entity.hh:59
[ provides Dune::Grid ]
Definition: agrid.hh:137
int twist() const
obtain twist
Definition: albertagrid/entity.hh:130
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:72
Default Implementations for EntityImp.
Definition: common/entity.hh:552
provides a wrapper for ALBERTA's el_info structure
Definition: albertagrid/entity.hh:63
Definition: albertagrid/entity.hh:159
PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:24
Grid::template Codim< 0 >::Geometry Geometry
Definition: albertagrid/entity.hh:186
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:320
Definition: albertagrid/entity.hh:33
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:386
int count() const
Definition: albertagrid/entity.hh:226
#define ALBERTA
Definition: albertaheader.hh:27
Grid::HierarchicIterator HierarchicIterator
Definition: albertagrid/entity.hh:190
Grid::template Codim< 0 >::EntityPointer EntityPointer
Definition: albertagrid/entity.hh:191
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:196
static const int mydimension
Definition: albertagrid/entity.hh:60
AlbertaGridEntity(const Grid &grid)
constructor
Definition: entity.cc:22
ALBERTA EL_INFO * getElInfo() const
needed for the LevelIterator and LeafIterator
Definition: entity.cc:52
AlbertaGridLevelIntersectionIterator ilevelend() const
Definition: albertagrid/entity.hh:265
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:338
Definition: albertagrid/entity.hh:30
int twist(int i) const
obtain twist of a subentity
Definition: albertagrid/entity.hh:351
void setElement(const ElementInfo &elementInfo, int subEntity)
Definition: entity.cc:68
Grid::template Codim< codim >::Geometry Geometry
Definition: albertagrid/entity.hh:70
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition: albertagrid/entity.hh:194
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:124
Definition: albertagrid/entity.hh:45
bool equals(const This &other) const
equality of entities
Definition: entity.cc:38
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:118
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:97
GeometryType type() const
type of geometry of this entity
Definition: entity.cc:104
Definition: albertagrid/entityseed.hh:16
void clearElement()
Definition: entity.cc:60
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:106