dune-mmesh (1.4)
entity.hh
Go to the documentation of this file.
321 return MMeshIncidentVerticesIterator<GridImp>( Impl( mMesh_, hostEntity_, includeInfinite, true ) );
340 insertionLevel = std::max( insertionLevel, this->template subEntity<dim>(i).impl().insertionLevel() );
509 : id_( /*caching id*/ IdType({ std::size_t(-4), std::size_t(-3), std::size_t(-2) }) ), isLeaf_(false), mMesh_(mMesh), vertex_(vertex)
569 DUNE_THROW( InvalidStateException, "MMesh entities do no have a father, but a connectedComponent instead!" );
721 return MMeshEntity<cc, dim, GridImp> ( mMesh_, typename GridImp::template HostGridEntity<1> ( hostEntity_, second ) );
732 return MMeshEntity<cc, dim, GridImp> ( mMesh_, typename GridImp::template HostGridEntity<2> ( hostEntity_, i0, i1 ) );
The implementation of a connected component of entities in MMeshThe connected component stores a list...
Definition: connectedcomponent.hh:34
void mark(int refCount) const
mark entity for refine or coarse
Definition: entity.hh:612
GridImp::template Codim< 0 >::EntitySeed EntitySeed
The type of the EntitySeed interface class.
Definition: entity.hh:477
void setWillVanish(bool mightVanish) const
set if this entity will vanish after adaptation
Definition: entity.hh:606
MMeshLeafIntersectionIterator< GridImp > ileafbegin() const
First leaf intersection.
Definition: entity.hh:736
PartitionType partitionType() const
The partition type for parallel computing.
Definition: entity.hh:637
bool operator<(const MMeshEntity &other) const
returns true if host entities are equal
Definition: entity.hh:561
bool isLeaf() const
returns true if Entity has no children
Definition: entity.hh:777
const GridImp & grid() const
Return the host grid.
Definition: entity.hh:818
LocalGeometry geometryInFather() const
Geometry of this entity in bounded father entity ( assumption: this \subset father )
Definition: entity.hh:662
int getMark() const
get mark of entity
Definition: entity.hh:618
std::array< GlobalCoordinate, dim+1 > VertexStorage
define the type used for storage the vertices of a caching entity
Definition: entity.hh:486
MMeshLeafIntersectionIterator< GridImp > ileafend() const
Reference to one past the last leaf intersection.
Definition: entity.hh:743
MMeshImpl::MultiId IdType
define the type used for persistent indices
Definition: entity.hh:483
const bool isNew() const
returns true if this entity is new after adaptation
Definition: entity.hh:588
const bool mightVanish() const
returns true if this entity will vanish after adaptation
Definition: entity.hh:600
int level() const
Level of this element.
Definition: entity.hh:630
std::size_t domainMarker() const
Return domain marker of entity.
Definition: entity.hh:800
IdType id() const
Return id computed by vertex ids.
Definition: entity.hh:824
bool equals(const MMeshEntity &other) const
returns true if host entities are equal
Definition: entity.hh:549
VertexStorage vertex_
the vertices of the host entity object of this entity (for caching entity)
Definition: entity.hh:867
bool wasRefined() const
returns if grid was refined
Definition: entity.hh:782
Geometry geometry() const
Geometry of this entity.
Definition: entity.hh:648
unsigned int subEntities(unsigned int cc) const
Return the number of subEntities of codimension cc.
Definition: entity.hh:685
bool operator==(const MMeshEntity &other) const
returns true if host entities are equal
Definition: entity.hh:555
MMeshLeafIntersectionIterator< GridImp > ilevelbegin() const
We only have one level.
Definition: entity.hh:751
GeometryType type() const
returns the geometry type
Definition: entity.hh:794
bool mightBeCoarsened() const
returns if grid might be coarsened
Definition: entity.hh:788
MMeshHierarchicIterator< GridImp > hbegin(int maxlevel) const
First hierarchic entity, i.e. this entity, because we only have one level.
Definition: entity.hh:760
EntitySeed seed() const
Create EntitySeed.
Definition: entity.hh:624
MMeshEntity father() const
returns the father entity
Definition: entity.hh:567
const HostGridEntity & hostEntity() const
Return the host entity.
Definition: entity.hh:806
HostGridEntity & hostEntity()
Return the host entity.
Definition: entity.hh:812
bool hasFather() const
returns true if father entity exists
Definition: entity.hh:574
void setIsNew(bool isNew) const
set if this entity is new after adaptation
Definition: entity.hh:594
MMeshHierarchicIterator< GridImp > hend(int maxlevel) const
Reference to one past the last hierarchic entity.
Definition: entity.hh:768
std::enable_if_t< cc==0, typename GridImp::template Codim< cc >::Entity > subEntity(unsigned int i) const
Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1.
Definition: entity.hh:695
std::enable_if_t< codim==dim-1 &&enable, MMeshEdgeIncidentIterator< GridImp > > incidentEnd() const
Last incident element.
Definition: entity.hh:287
GridImp::template Codim< codim >::Geometry Geometry
The type of the Geometry interface class.
Definition: entity.hh:79
std::enable_if_t< cd !=dim, std::size_t > insertionLevel() const
Return insertion level (maximal insertionLevel of the corresponding vertices)
Definition: entity.hh:336
std::enable_if_t< codim==dim &&cc==dim, typename GridImp::template Codim< dim >::Entity > subEntity(unsigned int i) const
Obtain a cc dim subEntity of a codim dim entity.
Definition: entity.hh:251
std::enable_if_t< codim==2 &&cc==3, typename GridImp::template Codim< 3 >::Entity > subEntity(unsigned int i) const
Obtain a cc 3 subEntity of a codim 2 entity (only for 3d)
Definition: entity.hh:231
Geometry geometry() const
geometry of this entity
Definition: entity.hh:363
std::enable_if_t< codim==1 &&cc==dim, typename GridImp::template Codim< dim >::Entity > subEntity(unsigned int i) const
Obtain a cc dim subEntity of a codim 1 entity.
Definition: entity.hh:213
GridImp::template Codim< codim >::EntitySeed EntitySeed
The type of the EntitySeed interface class.
Definition: entity.hh:82
const HostGridEntity & hostEntity() const
returns the host entity
Definition: entity.hh:375
std::enable_if_t< codim==dim &&enable, MMeshIncidentVerticesIterator< GridImp > > incidentVerticesBegin(bool includeInfinite) const
First incident vertex.
Definition: entity.hh:311
unsigned int subEntities(unsigned int cc) const
Return the number of subEntities of codimension codim.
Definition: entity.hh:194
bool hasFather() const
returns true if father entity exists
Definition: entity.hh:167
bool isInterface() const
Return if vertex is part of the interface.
Definition: entity.hh:345
std::enable_if_t< cd==dim, std::size_t > insertionLevel() const
Return insertion level of vertex.
Definition: entity.hh:327
std::enable_if_t< codim==dim-1 &&enable, MMeshEdgeIncidentIterator< GridImp > > incidentBegin() const
First incident element.
Definition: entity.hh:279
int boundaryFlag() const
Return boundary flag (-1 = not set, 0 = can be removed, 1 = important for domain boundary)
Definition: entity.hh:354
std::enable_if_t< codim==dim &&enable, MMeshIncidentVerticesIterator< GridImp > > incidentVerticesEnd(bool includeInfinite) const
Last incident vertex.
Definition: entity.hh:319
std::enable_if_t< codim==dim &&enable, MMeshIncidentIterator< GridImp > > incidentBegin() const
First incident element.
Definition: entity.hh:263
std::enable_if_t< codim==dim &&enable, MMeshIncidentFacetsIterator< GridImp > > incidentFacetsEnd() const
Last incident facet.
Definition: entity.hh:303
std::enable_if_t< codim==dim &&enable, MMeshIncidentFacetsIterator< GridImp > > incidentFacetsBegin() const
First incident facet.
Definition: entity.hh:295
HostGridEntity & hostEntity()
returns the host entity
Definition: entity.hh:381
std::enable_if_t< codim==dim &&enable, MMeshIncidentIterator< GridImp > > incidentEnd() const
Last incident element.
Definition: entity.hh:271
PartitionType partitionType() const
The partition type for parallel computing.
Definition: entity.hh:184
Iterator over the descendants of an entity.Mesh entities of codimension 0 ("elements") allow to visit...
Definition: hierarchiciterator.hh:24
Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all nei...
Definition: intersectioniterator.hh:30
The MMeshCachingEntity class.
The MMeshConnectedComponent class.
EntityIterator< Grid::dimension, Grid, MMeshIncidentVerticesIteratorImp< Grid, Grid::dimensionworld > > MMeshIncidentVerticesIterator
The Incident Facets Iterator alias.
Definition: incidentiterator.hh:45
EntityIterator< 0, Grid, MMeshEdgeIncidentIteratorImp< Grid, Grid::dimension > > MMeshEdgeIncidentIterator
The Incident Entity Iterator alias for edges.
Definition: incidentiterator.hh:29
EntityIterator< 0, Grid, MMeshIncidentIteratorImp< Grid, Grid::dimension > > MMeshIncidentIterator
The Incident Entity Iterator alias.
Definition: incidentiterator.hh:21
EntityIterator< 1, Grid, MMeshIncidentFacetsIteratorImp< Grid, Grid::dimension > > MMeshIncidentFacetsIterator
The Incident Facets Iterator alias.
Definition: incidentiterator.hh:37
STL namespace.
