3 #include <dune/common/exceptions.hh> 10 template<
int cd,
int dim,
class Gr
idImp>
20 template<
int cd,
int dim,
class Gr
idImp>
28 template<
int cd,
int dim,
class Gr
idImp>
32 return (item_ == org.item_);
35 template<
int cd,
int dim,
class Gr
idImp>
41 template<
int cd,
int dim,
class Gr
idImp>
47 template<
int cd,
int dim,
class Gr
idImp>
51 return partitionType_;
54 template<
int cd,
int dim,
class Gr
idImp>
67 template<
int dim,
class Gr
idImp>
76 template<
int dim,
class Gr
idImp>
90 template<
int dim,
class Gr
idImp>
97 isLeaf_ = org.isLeaf_;
103 template<
int dim,
class Gr
idImp>
108 if( ! key.isGhost() )
114 template<
int dim,
class Gr
idImp>
119 item_ =
static_cast<IMPLElementType *
> (&element);
122 assert( ! item_->isGhost() );
124 level_ = (*item_).level();
125 isLeaf_ = ((*item_).down() == 0);
131 template<
int dim,
class Gr
idImp>
136 item_ =
static_cast<IMPLElementType *
> ( ghost.getGhost().first );
140 assert(item_->isGhost());
142 level_ = item_->level();
144 ghost_ =
static_cast<BNDFaceType *
> (&
ghost);
147 BNDFaceType * dwn =
static_cast<BNDFaceType *
> (ghost.down());
148 if ( ! dwn ) isLeaf_ =
true;
151 assert( ghost.level() == level_ );
152 if(dwn->ghostLevel() == level_)
166 template<
int dim,
class Gr
idImp>
173 template<
int dim,
class Gr
idImp>
177 return (item_ == org.item_);
180 template<
int dim,
class Gr
idImp>
187 template<
int dim,
class Gr
idImp>
191 return (*item_).getIndex();
194 template<
int dim,
class Gr
idImp>
198 return grid().referenceElement().size(cc);
201 template<
int dim,
class Gr
idImp>
204 return grid().referenceElement().size(codim);
207 template<
int dim,
class Gr
idImp>
213 assert( (isGhost()) ? item_->isGhost() : true );
217 template<
int dim,
class Gr
idImp>
223 template<
int dim,
class Gr
idImp>
236 template<
int dim,
class Gr
idImp>
243 template<
int dim,
class Gr
idImp>
251 template<
int dim,
class Gr
idImp>
259 template<
int dim,
class Gr
idImp>
268 template<
int dim,
class Gr
idImp>
277 template<
int dim,
class Gr
idImp>
281 return item_->hasBeenRefined();
284 template<
int dim,
class Gr
idImp>
288 return ((*item_).requestrule() == coarse_element_t);
297 template<
int codim,
class Gr
idImp >
300 const HElementType &item)
306 template<
int codim,
class Gr
idImp >
309 const HBndSegType & ghostFace )
318 template<
int codim,
class Gr
idImp >
328 template<
int codim,
class Gr
idImp >
341 template<
int codim,
class Gr
idImp >
344 const HElementType &item,
349 ,
seed_( item, level, twist, duneFace )
353 template<
int codim,
class Gr
idImp >
364 template<
int codim,
class Gr
idImp >
378 template<
int codim,
class Gr
idImp >
387 template<
int codim,
class Gr
idImp >
410 if( item->isGhost() )
430 template<
int codim,
class Gr
idImp >
437 template<
int codim,
class Gr
idImp >
445 template<
int codim,
class Gr
idImp >
457 template<
int codim,
class Gr
idImp >
465 template<
int codim,
class Gr
idImp >
480 template<
int codim,
class Gr
idImp >
487 template<
int codim,
class Gr
idImp >
498 template<
int codim,
class Gr
idImp >
515 template<
int codim,
class Gr
idImp >
525 template<
int codim,
class Gr
idImp >
531 template<
int codim,
class Gr
idImp >
541 template<
int codim,
class Gr
idImp >
564 template<
int codim,
class Gr
idImp >
579 template<
int codim,
class Gr
idImp >
585 template<
int codim,
class Gr
idImp >
void updateEntityPointer(HElementType *item, int level=-1)
Definition: entity_inline.hh:500
int level() const
return level
Definition: alugrid/3d/entityseed.hh:286
void setGhost(const HBndSegType &ghost)
setGhost is not valid for this codim
ghost entities
Definition: gridenums.hh:33
void clone(const ALU3dGridEntityPointerType &org)
Definition: entity_inline.hh:390
const FactoryType & factory() const
return reference to factory
Definition: alugrid/3d/entity.hh:150
Definition: alugrid/3d/entity.hh:468
PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:28
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
void clone(const ALU3dGridEntityPointerType &org)
Definition: entity_inline.hh:544
int level() const
level of this element
Definition: entity_inline.hh:42
void reset(int l)
reset item pointer to NULL
Definition: entity_inline.hh:12
void clear()
clear the key data structure
Definition: alugrid/3d/entityseed.hh:482
Definition: alugrid/3d/entity.hh:26
GridImp::template Codim< 0 >::EntitySeed EntitySeed
typedef of my type
Definition: alugrid/3d/entity.hh:270
ImplTraits::template Codim< cd >::InterfaceType HElementType
Definition: alugrid/3d/entity.hh:698
void updateGhostPointer(HBndSegType &ghostFace)
Definition: entity_inline.hh:489
~ALU3dGridEntityPointerBase()
Destructor.
Definition: entity_inline.hh:432
void setElement(const HItemType &item)
int level() const
ask for level of entities
Definition: entity_inline.hh:481
const GridImp & grid() const
return reference to grid
Definition: alugrid/3d/entity.hh:147
Class that wraps IntersectionIteratorImp of a grid and gets it's internal object from a object stack ...
Definition: intersectioniteratorwrapper.hh:327
void freeEntity()
put entity to entity stack
Definition: entity_inline.hh:446
all interior entities
Definition: gridenums.hh:29
void setEntity(const ALU3dGridEntity< cd, dim, GridImp > &org)
set item from other entity, mainly for copy constructor of entity pointer
void set(const HElementType &item, const int level)
set element and level
Definition: alugrid/3d/entityseed.hh:279
bool equals(const ALU3dGridEntitySeedType &key) const
equality, calls BaseType equals
Definition: alugrid/3d/entityseed.hh:305
Definition: alugrid/3d/entity.hh:30
GridImp::GridObjectFactoryType FactoryType
Definition: alugrid/3d/entity.hh:486
Entity & dereference() const
dereferencing
Definition: entity_inline.hh:467
GridImp::template Codim< codimension >::Entity Entity
type of Entity
Definition: alugrid/3d/entity.hh:491
int level() const
ask for level of entities
Definition: entity_inline.hh:580
HElementType * item() const
get item from key
Definition: alugrid/3d/entityseed.hh:165
GridImp::template Codim< cd >::Entity Entity
type of Entity
Definition: alugrid/3d/entity.hh:717
Definition: alugrid/3d/entity.hh:202
Include standard header files.
Definition: agrid.hh:59
ALU3dGridEntityPointerBase(const FactoryType &factory, const HElementType &item)
Constructor for EntityPointer that points to an element.
Definition: entity_inline.hh:299
ALU3dGridEntityPointer(const FactoryType &factory, const int level, const HElementType &item, const int twist=defaultValue, const int duneFace=defaultValue)
Constructor for EntityPointer that points to an element.
Definition: entity_inline.hh:517
void done()
has to be called when iterator is finished
Definition: entity_inline.hh:438
Entity & dereference() const
dereferencing
Definition: entity_inline.hh:566
GeometryType type() const
type of geometry of this entity
Definition: entity_inline.hh:56
const FactoryType & factory_
Definition: alugrid/3d/entity.hh:569
ThisType & operator=(const ThisType &org)
assignment operator
Definition: entity_inline.hh:381
ThisType & operator=(const ThisType &org)
assignment operator
Definition: entity_inline.hh:534
bool equals(const ALU3dGridEntityPointerType &i) const
equality
Definition: entity_inline.hh:459
EntityImp & entityImp() const
Definition: alugrid/3d/entity.hh:578
bool equals(const ALU3dGridEntity< cd, dim, GridImp > &org) const
compare 2 elements by comparing the item pointers
Definition: entity_inline.hh:30
Ghost ghost
PartitionSet for the ghost partition.
Definition: partitionset.hh:238
GridImp::GridObjectFactoryType FactoryType
Definition: alugrid/3d/entity.hh:711
PartitionType partitionType() const
return partition type of this entity ( see grid.hh )
Definition: entity_inline.hh:49
void updateEntityPointer(HElementType *item, int level)
Definition: entity_inline.hh:587
Definition: alugrid/3d/entity.hh:22
void getEntity(const ALU3dGridEntityPointerType &org)
Definition: entity_inline.hh:366
ALU3dGridEntitySeedType seed_
Definition: alugrid/3d/entity.hh:572
Class that wraps IntersectionIteratorImp of a grid and gets it's internal object from a object stack ...
Definition: intersectioniteratorwrapper.hh:232
void removeElement()
reset item pointer to NULL
Definition: entity_inline.hh:22
EntityObject * entity_
Definition: alugrid/3d/entity.hh:575