dune-alugrid  2.6-git
entity.hh
Go to the documentation of this file.
1 #ifndef DUNE_ALU3DGRIDENTITY_HH
2 #define DUNE_ALU3DGRIDENTITY_HH
3 
4 // System includes
5 #include <type_traits>
6 
7 // Dune includes
8 #include <dune/grid/common/entity.hh>
11 
12 // Local includes
13 #include "alu3dinclude.hh"
14 #include "iterator.hh"
15 #include "entityseed.hh"
16 
17 namespace Dune
18 {
19 
20  // Forward declarations
21  template<int cd, int dim, class GridImp>
22  class ALU3dGridEntity;
23  template<int cd, PartitionIteratorType pitype, class GridImp >
24  class ALU3dGridLevelIterator;
25  template<int cd, class GridImp >
26  class ALU3dGridEntityPointer;
27  template<int mydim, int coorddim, class GridImp>
28  class ALU3dGridGeometry;
29  template<class GridImp>
30  class ALU3dGridHierarchicIterator;
31  template<class GridImp>
32  class ALU3dGridIntersectionIterator;
33  template<int codim, PartitionIteratorType, class GridImp>
34  class ALU3dGridLeafIterator;
35  template<int dim, int dimworld, ALU3dGridElementType, class >
36  class ALU3dGrid;
37 
44 template<int cd, int dim, class GridImp>
46 public EntityDefaultImplementation <cd,dim,GridImp,ALU3dGridEntity>
47 {
48  // default just returns level
49  template <class GridType, int dm, int cdim>
50  struct GetLevel
51  {
52  template <class ItemType>
53  static int getLevel(const GridType & grid, const ItemType & item )
54  {
55  return item.level();
56  }
57  };
58 
59  // for leaf vertices the level is somewhat difficult to obtain, because
60  // this the maximum of levels of elements that have this vertex as sub
61  // entity
62  template <class GridType>
63  struct GetLevel<GridType,dim,dim>
64  {
65  template <class ItemType>
66  static int getLevel(const GridType & grid, const ItemType & item)
67  {
68  return (item.isLeafEntity()) ? grid.getLevelOfLeafVertex(item) : item.level();
69  }
70  };
71 
72  enum { dimworld = GridImp::dimensionworld };
73 
74  typedef typename GridImp::MPICommunicatorType Comm;
75 
76  friend class ALU3dGrid< GridImp::dimension, GridImp::dimensionworld, GridImp::elementType, Comm >;
77  friend class ALU3dGridEntity < 0, dim, GridImp >;
78  friend class ALU3dGridLevelIterator < cd, All_Partition, GridImp >;
79 
80  friend class ALU3dGridHierarchicIndexSet< GridImp::dimension, GridImp::dimensionworld, GridImp::elementType, Comm >;
81 
82  template< class > friend class ALU3dGridFactory;
83 
84  typedef typename GridImp::Traits::template Codim< cd >::GeometryImpl GeometryImpl;
85 
86 public:
87  typedef ALU3dImplTraits< GridImp::elementType, Comm > ImplTraits;
88  typedef typename ImplTraits::template Codim<dim, cd>::InterfaceType HItemType;
89  typedef typename ImplTraits::template Codim<dim, cd>::ImplementationType ItemType;
90  typedef typename ImplTraits::VertexType VertexType;
91  typedef typename ImplTraits::HBndSegType HBndSegType;
92 
93  typedef typename GridImp::template Codim<cd>::Entity Entity;
94  typedef typename GridImp::template Codim<cd>::Geometry Geometry;
95 
96 #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
97  typedef typename GridImp::template Codim<0>::EntityPointer EntityPointer;
98 #endif // #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
99 
101  typedef typename GridImp::template Codim<cd>::EntitySeed EntitySeed;
102 
104  ALU3dGridEntity();
105 
107  ALU3dGridEntity( const EntitySeed& seed );
108 
110  Geometry geometry () const;
111 
113  GeometryType type () const { return geo_.type(); }
114 
115  // set element as normal entity
116  void setElement(const HItemType & item);
117  void setElement(const HItemType & item, const GridImp& grid );
118  void setElement(const HItemType & item, const int level, int twist=0);
119 
120  /* set entity from seed */
121  void setElement(const EntitySeed& seed);
122 
124  void setGhost(const HBndSegType &ghost);
125 
128  {
129  seed_.clear();
130  geo_.invalidate();
131  }
132 
134  bool equals ( const ALU3dGridEntity<cd,dim,GridImp> & org ) const
135  {
136  return seed_ == org.seed_;
137  }
138 
140  void setEntity ( const ALU3dGridEntity<cd,dim,GridImp> & org );
141 
142  int subIndex ( int i, unsigned int codim ) const
143  {
144  DUNE_THROW( NotImplemented, "Method subIndex for higher codimension not implemented, yet." );
145  }
146 
147  // return reference to internal item
148  const ItemType& getItem () const { return *(static_cast<ItemType *> (seed_.item())); }
149 
151  EntitySeed seed() const { return seed_; }
152 
154  int level () const { return seed_.level(); }
155 
157  PartitionType partitionType() const { return this->convertBndId( getItem() ); }
158 
159 protected:
161  int getIndex () const { return getItem().getIndex(); }
162 
164  PartitionType convertBndId(const HItemType & item) const ;
165 
167  mutable GeometryImpl geo_;
168 
171 };
172 
186 //***********************
187 //
188 // --ALU3dGridEntity
189 // --0Entity
190 //
191 //***********************
192 template<int dim, class GridImp>
193 class ALU3dGridEntity<0,dim,GridImp>
194 : public EntityDefaultImplementation<0,dim,GridImp,ALU3dGridEntity>
195 {
196  static const int dimworld = std::remove_const< GridImp >::type::dimensionworld;
197  static const ALU3dGridElementType elementType = std::remove_const< GridImp >::type::elementType;
198 
199  typedef typename GridImp::MPICommunicatorType Comm;
200 
202  typedef typename ImplTraits::template Codim<dim, 0>::InterfaceType HElementType;
203 
204  typedef typename ImplTraits::GEOElementType GEOElementType;
205  typedef typename ImplTraits::BNDFaceType BNDFaceType;
206  typedef typename ImplTraits::IMPLElementType IMPLElementType;
207  typedef typename ImplTraits::HBndSegType HBndSegType;
208 
209  enum { refine_element_t = ImplTraits::RefinementRules::refine_element_t };
210  enum { bisect_element_t = ImplTraits::RefinementRules::bisect_element_t };
211  enum { coarse_element_t = ImplTraits::RefinementRules::coarse_element_t };
212  enum { nosplit_element_t = ImplTraits::RefinementRules::nosplit_element_t };
213 
214  typedef typename ImplTraits::MarkRuleType MarkRuleType;
215 
216  friend class ALU3dGrid< GridImp::dimension, GridImp::dimensionworld, elementType, Comm >;
217  friend class ALU3dGridIntersectionIterator < GridImp >;
218  friend class ALU3dGridIntersectionIterator < const GridImp >;
219  friend class ALU3dGridHierarchicIterator < const GridImp >;
220  friend class ALU3dGridHierarchicIterator < GridImp >;
221  friend class ALU3dGridLevelIterator <0,All_Partition,GridImp>;
222  friend class ALU3dGridLevelIterator <1,All_Partition,GridImp>;
223  friend class ALU3dGridLevelIterator <2,All_Partition,GridImp>;
224  friend class ALU3dGridLevelIterator <3,All_Partition,GridImp>;
225  friend class ALU3dGridLeafIterator <0, All_Partition,GridImp>;
226  friend class ALU3dGridLeafIterator <1, All_Partition,GridImp>;
227  friend class ALU3dGridLeafIterator <2, All_Partition,GridImp>;
228  friend class ALU3dGridLeafIterator <3, All_Partition,GridImp>;
229 
230  friend class ALU3dGridHierarchicIndexSet< GridImp::dimension, GridImp::dimensionworld, elementType, Comm >;
231 
232  template< class > friend class ALU3dGridFactory;
233 
234  // type of reference element
235  typedef typename GridImp :: ReferenceElementType ReferenceElementType;
236 
237  typedef typename GridImp::Traits::template Codim< 0 >::GeometryImpl GeometryImpl;
238  typedef typename GridImp::Traits::template Codim< 0 >::LocalGeometryImpl LocalGeometryImpl;
239 
240 public:
241  typedef typename GridImp::template Codim< 0 >::Geometry Geometry;
242  typedef typename GridImp::template Codim< 0 >::LocalGeometry LocalGeometry;
244 
248 
249  typedef typename GridImp::template Codim<0>::Entity Entity;
250 #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
251  typedef typename GridImp::template Codim<0>::EntityPointer EntityPointer;
252 #endif // #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
253 
254  template <int cd>
255  struct Codim
256  {
257  typedef typename GridImp::Traits::template Codim< cd >::Twists::Twist Twist;
258  typedef typename GridImp::template Codim< cd >::Entity Entity;
259 #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
260  typedef typename GridImp::template Codim<cd>::EntityPointer EntityPointer;
261 #endif // #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
262  };
263 
265  typedef typename GridImp::template Codim<0>::EntitySeed EntitySeed;
266 
268  ALU3dGridEntity();
269 
271  ALU3dGridEntity( const EntitySeed& seed );
272 
274  ALU3dGridEntity( const HElementType& element );
275 
277  ALU3dGridEntity( const HBndSegType& ghost );
278 
280  int level () const ;
281 
283  Geometry geometry () const;
284 
286  GeometryType type () const;
287 
289  PartitionType partitionType() const;
290 
294  template<int cc> int count () const ;
295 
299  unsigned int subEntities (unsigned int codim) const;
300 
303  template< int codim >
304  typename Codim< codim >::Entity subEntity ( int i ) const;
305 
306  template< int codim >
307  typename Codim< codim >::Twist twist ( int i ) const;
308 
310  bool isLeaf () const;
311 
314  Entity father () const;
315 
317  bool hasFather () const
318  {
319  return (this->level()>0);
320  }
321 
331  LocalGeometry geometryInFather () const;
332 
337  ALU3dGridHierarchicIterator<GridImp> hbegin (int maxlevel) const;
338 
340  ALU3dGridHierarchicIterator<GridImp> hend (int maxlevel) const;
341 
342  //***************************************************************
343  // Interface for Adaptation
344  //***************************************************************
345 
347  bool isNew () const;
348 
350  bool mightVanish () const;
351 
353  bool hasBoundaryIntersections () const;
354 
355  // private method
359  bool mark( const int refCount, const bool conformingRefinement ) const;
360 
362  int getMark() const;
363 
367  void setElement(HElementType &element);
368 
369  /* set entity from seed */
370  void setElement(const EntitySeed& seed);
371 
373  void setGhost(HBndSegType & ghost);
374 
376  void reset ( int l );
377 
379  void removeElement();
380 
382  bool equals ( const ALU3dGridEntity<0,dim,GridImp> & org ) const;
383 
384  void setEntity ( const ALU3dGridEntity<0,dim,GridImp> & org );
385 
389  template<int cc> int getSubIndex (int i) const;
390 
394  int subIndex(int i, unsigned int codim) const;
395 
396  // return reference to internal item
397  const IMPLElementType& getItem () const { return *item_; }
398 
399  // return reference to internal item
400  const BNDFaceType& getGhost () const
401  {
402  alugrid_assert ( isGhost() );
403  return *ghost_;
404  }
405 
407  bool isGhost () const{ return ImplTraits::isGhost( ghost_ ); }
408 
410  EntitySeed seed() const
411  {
412  if( isGhost() )
413  return EntitySeed( getGhost () );
414  else
415  return EntitySeed( getItem() );
416  }
417 
419  int macroId() const
420  {
421  return (isGhost()) ? getGhost().ldbVertexIndex() : getItem().ldbVertexIndex();
422  }
423 
425  int weight() const
426  {
427  return (isGhost()) ? 0 : getItem().weight();
428  }
429 
431  int master() const
432  {
433  return (isGhost()) ? getGhost().master() : getItem().master();
434  }
435 
436 protected:
438  int getIndex () const;
439 
441  mutable GeometryImpl geo_;
442 
443  // the current element of grid
444  mutable IMPLElementType* item_;
445 
447  mutable BNDFaceType* ghost_;
448 
449 }; // end of ALU3dGridEntity codim = 0
450 
451 
452 
453 //**********************************************************************
454 //
455 // --ALU3dGridEntityPointer
456 // --EntityPointer
457 // --EnPointer
461 template< int codim, class GridImp >
463 {
465  enum { dim = GridImp::dimension };
466  enum { dimworld = GridImp::dimensionworld };
467 
468  typedef typename GridImp::MPICommunicatorType Comm;
469 
470  friend class ALU3dGridEntity<codim,dim,GridImp>;
471  friend class ALU3dGridEntity< 0,dim,GridImp>;
472  friend class ALU3dGrid < GridImp::dimension, GridImp::dimensionworld, GridImp::elementType, Comm >;
473 
474  typedef ALU3dImplTraits< GridImp::elementType, Comm > ImplTraits;
475  typedef typename ImplTraits::template Codim<dim, codim>::InterfaceType HElementType;
476 
477  typedef typename ImplTraits::HBndSegType HBndSegType;
478  typedef typename ImplTraits::BNDFaceType BNDFaceType;
479 public:
480  enum { codimension = codim };
481 
483  typedef typename GridImp::template Codim<codimension>::Entity Entity;
486 
489 
492 
495 
497  ALU3dGridEntityPointerBase(const HElementType & item);
498 
500  ALU3dGridEntityPointerBase(const HBndSegType & ghostFace );
501 
504 
507 
509  bool equals (const ALU3dGridEntityPointerType& i) const;
510 
512  ThisType & operator = (const ThisType & org);
513 
515  Entity& dereference () const
516  {
517  // don't dereference empty entity pointer
519  alugrid_assert ( seed_.item() == & entityImp().getItem() );
520  return entity_;
521  }
522 
524  int level () const { return seed_.level(); }
525 
528 
529 protected:
530  // clones object
531  void clone (const ALU3dGridEntityPointerType & org);
532 
534  void done ();
535 
536  // update underlying item pointer and set ghost entity
537  void updateGhostPointer( HBndSegType & ghostFace );
538 
539  // update underlying item pointer and set entity
540  void updateEntityPointer( HElementType * item , int level = -1 );
541 
542  // key to gererate entity
544 
545  // entity that this EntityPointer points to
547 
548  // return reference to internal entity implementation
549  EntityImp & entityImp () const {
550  return GridImp :: getRealImplementation(entity_);
551  }
552 };
553 
557 template<class GridImp>
558 class ALU3dGridEntityPointer<0,GridImp> :
559 public ALU3dGridEntityPointerBase<0,GridImp>
560 {
561 protected:
563 
564  enum { cd = 0 };
566  enum { dim = GridImp::dimension };
567  enum { dimworld = GridImp::dimensionworld };
568 
569  typedef typename GridImp::MPICommunicatorType Comm;
570 
571  friend class ALU3dGridEntity<cd,dim,GridImp>;
572  friend class ALU3dGridEntity< 0,dim,GridImp>;
573  friend class ALU3dGrid < GridImp::dimension, GridImp::dimensionworld, GridImp::elementType, Comm >;
574 
575  typedef ALU3dImplTraits< GridImp::elementType, Comm > ImplTraits;
576  typedef typename ImplTraits::template Codim<dim, cd>::InterfaceType HElementType;
577 
578  typedef typename ImplTraits::HBndSegType HBndSegType;
579  typedef typename ImplTraits::BNDFaceType BNDFaceType;
580 
581  typedef ALU3dGridEntity< 0,dim,GridImp> ALU3dGridEntityType ;
582 
583  using BaseType :: seed_;
584  using BaseType :: entity_;
585  using BaseType :: entityImp;
586 public:
589 
591  typedef typename GridImp::template Codim<cd>::Entity Entity;
592 
595 
597  ALU3dGridEntityPointer(const HElementType & item)
598  : ALU3dGridEntityPointerBase<cd,GridImp> ( item )
599  {}
600 
603  : ALU3dGridEntityPointerBase<cd,GridImp> ( ghostFace )
604  {}
605 
608  : ALU3dGridEntityPointerBase<cd,GridImp> ( seed )
609  {
610  }
611 
614  : ALU3dGridEntityPointerBase<cd,GridImp> ( entity.seed() )
615  {
616  }
617 
621  : ALU3dGridEntityPointerBase<cd,GridImp> ()
622  {}
623 };
624 
625 
626 template<int cd, class GridImp>
628 public ALU3dGridEntityPointerBase<cd,GridImp>
629 {
630 protected:
633  enum { dim = GridImp::dimension };
634  enum { dimworld = GridImp::dimensionworld };
635 
636  typedef typename GridImp::MPICommunicatorType Comm;
637 
638  friend class ALU3dGridEntity<cd,dim,GridImp>;
639  friend class ALU3dGridEntity< 0,dim,GridImp>;
640  friend class ALU3dGrid < GridImp::dimension, GridImp::dimensionworld, GridImp::elementType, Comm >;
641 
642  typedef ALU3dImplTraits< GridImp::elementType, Comm > ImplTraits;
643  typedef typename ImplTraits::template Codim<dim, cd>::InterfaceType HElementType;
644 
645  typedef typename ImplTraits::HBndSegType HBndSegType;
646  typedef typename ImplTraits::BNDFaceType BNDFaceType;
647  typedef ALU3dGridEntity<cd,dim,GridImp> ALU3dGridEntityType;
648 
649  using BaseType :: seed_;
650  using BaseType :: entity_;
651  using BaseType :: entityImp;
652 
653 public:
656 
658  typedef typename GridImp::template Codim<cd>::Entity Entity;
659 
662 
663 protected:
664  static const int defaultValue = -665; //ALU3dGridEntityPointerType :: defaultValue;
665 
666 public:
668  ALU3dGridEntityPointer(const ALU3dGridEntityType& entity)
669  : ALU3dGridEntityPointerBase<cd,GridImp> ( entity.seed() )
670  {}
671 
674  : ALU3dGridEntityPointerBase<cd,GridImp> ( seed )
675  {}
676 
680  : ALU3dGridEntityPointerBase<cd,GridImp> ()
681  {}
682 
683 protected:
684  void updateEntityPointer( HElementType * item , int level );
685 };
686 
687 } // end namespace Dune
688 
689 #include "entity_inline.hh"
690 
691 #if COMPILE_ALUGRID_INLINE
692  #include "entity_imp.cc"
693 #endif
694 
695 #endif
#define alugrid_assert(EX)
Definition: alugrid_assert.hh:20
Provides proxy classes for IntersectionsIterators.
Definition: alu3dinclude.hh:80
ALU3dGridElementType
Definition: topology.hh:12
Definition: alu3dinclude.hh:259
[ provides Dune::Grid ]
Definition: alugrid/3d/grid.hh:463
Definition: entity.hh:47
EntitySeed seed_
the information necessary to make sense of this entity
Definition: entity.hh:170
GridImp::template Codim< cd >::Geometry Geometry
Definition: entity.hh:94
GeometryType type() const
type of geometry of this entity
Definition: entity.hh:113
void removeElement()
reset item pointer to NULL
Definition: entity.hh:127
int level() const
level of this element
Definition: entity.hh:154
PartitionType partitionType() const
return partition type of this entity ( see grid.hh )
Definition: entity.hh:157
ALU3dGridEntity()
Constructor.
Definition: entity_imp.cc:28
PartitionType convertBndId(const HItemType &item) const
convert ALUGrid partition type to dune partition type
Definition: entity_imp.cc:90
Geometry geometry() const
geometry of this entity
Definition: entity_imp.cc:109
ImplTraits::template Codim< dim, cd >::InterfaceType HItemType
Definition: entity.hh:88
GridImp::template Codim< cd >::EntitySeed EntitySeed
typedef of my type
Definition: entity.hh:101
GridImp::template Codim< cd >::Entity Entity
Definition: entity.hh:93
ImplTraits::template Codim< dim, cd >::ImplementationType ItemType
Definition: entity.hh:89
void setEntity(const ALU3dGridEntity< cd, dim, GridImp > &org)
set item from other entity, mainly for copy constructor of entity pointer
Definition: entity_imp.cc:41
int subIndex(int i, unsigned int codim) const
Definition: entity.hh:142
EntitySeed seed() const
return seed of entity
Definition: entity.hh:151
const ItemType & getItem() const
Definition: entity.hh:148
void setElement(const HItemType &item)
Definition: entity_imp.cc:48
GridImp::template Codim< 0 >::EntityPointer EntityPointer
Definition: entity.hh:97
ImplTraits::HBndSegType HBndSegType
Definition: entity.hh:91
GeometryImpl geo_
the current geometry
Definition: entity.hh:167
ImplTraits::VertexType VertexType
Definition: entity.hh:90
ALU3dImplTraits< GridImp::elementType, Comm > ImplTraits
Definition: entity.hh:87
void setGhost(const HBndSegType &ghost)
setGhost is not valid for this codim
Definition: entity_imp.cc:80
int getIndex() const
index is unique within the grid hierarchy and per codim
Definition: entity.hh:161
bool equals(const ALU3dGridEntity< cd, dim, GridImp > &org) const
compare 2 elements by comparing the item pointers
Definition: entity.hh:134
Definition: iterator.hh:554
Definition: entity.hh:629
GridImp::MPICommunicatorType Comm
Definition: entity.hh:636
GridImp::template Codim< cd >::Entity Entity
type of Entity
Definition: entity.hh:658
static const int defaultValue
Definition: entity.hh:664
@ dimworld
Definition: entity.hh:634
ImplTraits::template Codim< dim, cd >::InterfaceType HElementType
Definition: entity.hh:643
ALU3dGridEntityPointerBase< cd, GridImp > BaseType
Definition: entity.hh:631
ALU3dGridEntityPointer(const ALU3dGridEntitySeedType &seed)
Constructor for EntityPointer that points to given entity.
Definition: entity.hh:673
ALU3dGridEntityPointer< cd, GridImp > ThisType
Definition: entity.hh:632
ALU3dGridEntityPointer()
Definition: entity.hh:679
@ dim
Definition: entity.hh:633
void updateEntityPointer(HElementType *item, int level)
Definition: entity_inline.hh:326
ImplTraits::HBndSegType HBndSegType
Definition: entity.hh:645
ImplTraits::BNDFaceType BNDFaceType
Definition: entity.hh:646
Definition: iterator.hh:713
Definition: iterator.hh:56
Leaf iterator.
Definition: iterator.hh:639
GridImp::template Codim< 0 >::Entity Entity
Definition: entity.hh:249
const BNDFaceType & getGhost() const
Definition: entity.hh:400
BNDFaceType * ghost_
not zero if entity is ghost entity
Definition: entity.hh:447
GridImp::template Codim< 0 >::Geometry Geometry
Definition: entity.hh:241
bool hasFather() const
returns true if father entity exists
Definition: entity.hh:317
GridImp::template Codim< 0 >::EntitySeed EntitySeed
typedef of my type
Definition: entity.hh:265
IMPLElementType * item_
Definition: entity.hh:444
GridImp::template Codim< 0 >::EntityPointer EntityPointer
Definition: entity.hh:251
Codim< codim >::Entity subEntity(int i) const
GeometryImpl geo_
the entity's geometry
Definition: entity.hh:441
GridImp::template Codim< 0 >::LocalGeometry LocalGeometry
Definition: entity.hh:242
EntitySeed seed() const
return key for this entity
Definition: entity.hh:410
const IMPLElementType & getItem() const
Definition: entity.hh:397
Codim< codim >::Twist twist(int i) const
int weight() const
weight of entity (ie number of leaf elements underneath)
Definition: entity.hh:425
bool isGhost() const
returns true if entity is ghost
Definition: entity.hh:407
int master() const
return rank number of master process
Definition: entity.hh:431
int macroId() const
return macro id of this entity
Definition: entity.hh:419
GridImp::template Codim< cd >::Entity Entity
Definition: entity.hh:258
GridImp::Traits::template Codim< cd >::Twists::Twist Twist
Definition: entity.hh:257
GridImp::template Codim< cd >::EntityPointer EntityPointer
Definition: entity.hh:260
Definition: entity.hh:463
void updateGhostPointer(HBndSegType &ghostFace)
Definition: entity_inline.hh:298
GridImp::template Codim< codimension >::Entity Entity
type of Entity
Definition: entity.hh:483
ThisType ALU3dGridEntityPointerType
typedef of my type
Definition: entity.hh:488
int level() const
ask for level of entities
Definition: entity.hh:524
ALU3dGridEntityPointerBase()
default empty constructor
Definition: entity_inline.hh:238
EntityImp & entityImp() const
Definition: entity.hh:549
ALU3dGridEntitySeedType seed_
Definition: entity.hh:543
bool equals(const ALU3dGridEntityPointerType &i) const
equality
Definition: entity_inline.hh:290
EntityObject entity_
Definition: entity.hh:546
ALU3dGridEntitySeed< codimension, GridImp > ALU3dGridEntitySeedType
type of entity seed
Definition: entity.hh:494
Entity & dereference() const
dereferencing
Definition: entity.hh:515
ALU3dGridEntityPointer< codimension, GridImp > EntityPointerImp
make type of entity pointer implementation available in derived classes
Definition: entity.hh:491
@ codimension
Definition: entity.hh:480
ThisType & operator=(const ThisType &org)
assignment operator
Definition: entity_inline.hh:257
void done()
has to be called when iterator is finished
Definition: entity_inline.hh:283
void clone(const ALU3dGridEntityPointerType &org)
Definition: entity_inline.hh:266
ALU3dGridEntity< codimension, dim, GridImp > EntityImp
Definition: entity.hh:485
void updateEntityPointer(HElementType *item, int level=-1)
Definition: entity_inline.hh:309
Entity EntityObject
Definition: entity.hh:484
ALU3dGridEntityPointer< cd, GridImp > ThisType
Definition: entity.hh:565
ALU3dGridEntityPointer(const HBndSegType &ghostFace)
Constructor for EntityPointer that points to an ghost.
Definition: entity.hh:602
ImplTraits::BNDFaceType BNDFaceType
Definition: entity.hh:579
ImplTraits::HBndSegType HBndSegType
Definition: entity.hh:578
GridImp::template Codim< cd >::Entity Entity
type of Entity
Definition: entity.hh:591
ALU3dGridEntityPointer(const ALU3dGridEntityType &entity)
Constructor for EntityPointer that points to an entity (interior or ghost)
Definition: entity.hh:613
ALU3dGridEntityPointer()
Definition: entity.hh:620
ImplTraits::template Codim< dim, cd >::InterfaceType HElementType
Definition: entity.hh:576
GridImp::MPICommunicatorType Comm
Definition: entity.hh:569
ALU3dGridEntityPointer(const ALU3dGridEntitySeedType &seed)
Constructor for EntityPointer that points to given entity.
Definition: entity.hh:607
ALU3dGridEntityPointerBase< 0, GridImp > BaseType
Definition: entity.hh:562
int level() const
return level
Definition: entityseed.hh:281
bool isValid() const
Definition: entityseed.hh:127
HElementType * item() const
get item from key
Definition: entityseed.hh:159
hierarchic index set of ALU3dGrid
Definition: indexsets.hh:38
Factory class for ALUGrids.
Definition: gridfactory.hh:30
Class that wraps IntersectionIteratorImp of a grid and gets it's internal object from a object stack ...
Definition: intersectioniteratorwrapper.hh:253
Class that wraps IntersectionIteratorImp of a grid and gets it's internal object from a object stack ...
Definition: intersectioniteratorwrapper.hh:357