dune-mmesh (1.4)
entity.hh
Go to the documentation of this file.
262 return MMeshIncidentVerticesIterator<GridImp>( Impl( grid_, hostEntity_, includeInfinite, true ) );
438 MMeshInterfaceGridEntity(const GridImp* grid, const MMeshInterfaceEntity& hostEntity, const IdType& id)
443 : id_( /*caching id*/ IdType({ std::size_t(-3), std::size_t(-2) }) ), grid_(grid), isLeaf_(false), vertex_(vertex)
525 DUNE_THROW( InvalidStateException, "MMesh entities do no have a father, but a connectedComponent instead!" );
651 auto cgalIndex = MMeshInterfaceImpl::computeCGALIndices<MMeshInterfaceEntity, dim>( hostEntity_ );
665 auto cgalIndex = MMeshInterfaceImpl::computeCGALIndices<MMeshInterfaceEntity, dim>( hostEntity_ );
Iterator over the descendants of an entity.Mesh entities of codimension 0 ("elements") allow to visit...
Definition: hierarchiciterator.hh:24
const GridImp & grid() const
returns the host entity
Definition: entity.hh:747
bool isLeaf() const
returns true if Entity has no children
Definition: entity.hh:718
const bool isNew() const
returns true if this entity is new after adaptation
Definition: entity.hh:563
GridImp::template Codim< 0 >::EntitySeed EntitySeed
The type of the EntitySeed interface class.
Definition: entity.hh:395
MMeshInterfaceGridHierarchicIterator< GridImp > hend(int maxlevel) const
Reference to one past the last hierarchic entity.
Definition: entity.hh:709
GridImp::ConnectedComponent ConnectedComponent
The type of the connected component.
Definition: entity.hh:398
std::enable_if_t< cc==dim, typename GridImp::template Codim< cc >::Entity > subEntity(std::size_t i) const
Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1.
Definition: entity.hh:648
LocalGeometry geometryInFather() const
Geometry of this entity in bounded father entity ( assumption: this \subset father )
Definition: entity.hh:540
std::size_t subEntities(std::size_t cc) const
Return the number of subEntities of codimension cc.
Definition: entity.hh:625
MMeshInterfaceGridLeafIntersectionIterator< GridImp > ileafbegin() const
First leaf intersection.
Definition: entity.hh:677
const ConnectedComponent & connectedComponent() const
returns the connected component
Definition: entity.hh:511
void setIsNew(bool isNew) const
set if this entity is new after adaptation
Definition: entity.hh:569
bool wasRefined() const
returns if grid was refined
Definition: entity.hh:723
int level() const
Level of this element.
Definition: entity.hh:603
EntitySeed seed() const
Create EntitySeed.
Definition: entity.hh:597
bool operator<(const MMeshInterfaceGridEntity &other) const
returns true if host entities are equal
Definition: entity.hh:505
MMeshInterfaceGridLeafIntersectionIterator< GridImp > ilevelbegin() const
We only have one level.
Definition: entity.hh:692
bool operator==(const MMeshInterfaceGridEntity &other) const
returns true if host entities are equal
Definition: entity.hh:499
std::enable_if_t< cc==1 &&dim==2, typename GridImp::template Codim< cc >::Entity > subEntity(std::size_t i) const
Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1.
Definition: entity.hh:662
bool mightBeCoarsened() const
returns if grid might be coarsened
Definition: entity.hh:729
MMeshInterfaceGridLeafIntersectionIterator< GridImp > ileafend() const
Reference to one past the last leaf intersection.
Definition: entity.hh:684
MMeshInterfaceGridHierarchicIterator< GridImp > hbegin(int maxlevel) const
First hierarchic entity, i.e. this entity, because we only have one level.
Definition: entity.hh:701
bool hasFather() const
returns true if father entity exists
Definition: entity.hh:530
Geometry geometry() const
Geometry of this entity.
Definition: entity.hh:616
bool hasConnectedComponent() const
returns true if a connected component exists
Definition: entity.hh:517
const MMeshInterfaceEntity & hostEntity() const
returns the host entity
Definition: entity.hh:741
std::array< GlobalCoordinate, dim+1 > VertexStorage
define the type used for storage the vertices of a caching entity
Definition: entity.hh:410
void mark(int refCount) const
mark entity for refine or coarse
Definition: entity.hh:585
MMeshImpl::MultiId IdType
define the type used for persistent indices
Definition: entity.hh:401
const bool mightVanish() const
returns true if this entity will vanish after adaptation
Definition: entity.hh:573
void setWillVanish(bool mightVanish) const
set if this entity will vanish after adaptation
Definition: entity.hh:579
int getMark() const
get mark of entity
Definition: entity.hh:591
GeometryType type() const
returns the geometry type
Definition: entity.hh:735
IdType id() const
return cached id
Definition: entity.hh:753
auto father() const
returns the father entity
Definition: entity.hh:523
PartitionType partitionType() const
The partition type for parallel computing.
Definition: entity.hh:610
std::enable_if_t< cc==0, typename GridImp::template Codim< cc >::Entity > subEntity(std::size_t i) const
Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1.
Definition: entity.hh:639
VertexStorage vertex_
the vertices of the host entity object of this entity (for caching entity)
Definition: entity.hh:786
The implementation of entities in a MMesh interface grid.
Definition: entity.hh:35
int level() const
level of this element
Definition: entity.hh:140
GridImp::template Codim< codim >::EntitySeed EntitySeed
The type of the EntitySeed interface class.
Definition: entity.hh:60
std::enable_if_t< cc==codim, typename GridImp::template Codim< cc >::Entity > subEntity(std::size_t i) const
Provide access to sub entity i for cc == dim.
Definition: entity.hh:165
GeometryType type() const
returns the geometry type
Definition: entity.hh:185
unsigned int subEntities(unsigned int cc) const
Return the number of subEntities of codimension codim.
Definition: entity.hh:152
bool hasConnectedComponent() const
returns true if connected component entity exists
Definition: entity.hh:129
auto incidentInterfaceVerticesBegin() const
First incident vertex.
Definition: entity.hh:269
auto incidentInterfaceVerticesEnd() const
Last incident vertex.
Definition: entity.hh:281
auto incidentInterfaceElementsEnd() const
Last incident element.
Definition: entity.hh:310
const GridImp & grid() const
returns the grid
Definition: entity.hh:342
std::enable_if_t< cc==codim+1, typename GridImp::template Codim< cc >::Entity > subEntity(std::size_t i) const
Provide access to sub entity i for cc == dim-1.
Definition: entity.hh:173
EntitySeed seed() const
Return entity seed.
Definition: entity.hh:134
bool isTip() const
Return if this vertex is a tip.
Definition: entity.hh:197
const MMeshInterfaceEntity & hostEntity() const
Return reference to the host entity.
Definition: entity.hh:327
bool isInterface() const
returns that entity is part of the interface
Definition: entity.hh:191
std::size_t insertionLevel() const
Return the insertion level of the vertex.
Definition: entity.hh:236
int boundaryFlag() const
Return boundary flag (-1 = not set, 0 = can be removed, 1 = important for domain boundary)
Definition: entity.hh:227
auto incidentVerticesBegin(bool includeInfinite) const
First incident vertex.
Definition: entity.hh:245
PartitionType partitionType() const
The partition type for parallel computing.
Definition: entity.hh:146
auto incidentInterfaceElementsBegin() const
First incident element.
Definition: entity.hh:293
Geometry geometry() const
geometry of this entity
Definition: entity.hh:179
auto incidentVerticesEnd(bool includeInfinite) const
Last incident vertex.
Definition: entity.hh:257
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
EntityIterator< Grid::dimension, Grid, MMeshIncidentVerticesIteratorImp< Grid, Grid::dimensionworld > > MMeshIncidentVerticesIterator
The Incident Facets Iterator alias.
Definition: incidentiterator.hh:45
Some common helper methods.
The MMeshIncidentIterator class.
EntityIterator< 0, Grid, MMeshEdgeIncidentInterfaceElementsIteratorImp< Grid, Grid::dimension > > MMeshEdgeIncidentInterfaceElementsIterator
The Incident Interface Elements Iterator alias.
Definition: incidentiterator.hh:321
EntityIterator< Grid::dimension, Grid, MMeshIncidentInterfaceVerticesIteratorImp< Grid, Grid::dimension > > MMeshIncidentInterfaceVerticesIterator
The Incident Interface Vertices Iterator alias.
Definition: incidentiterator.hh:26
EntityIterator< 0, Grid, MMeshIncidentInterfaceElementsIteratorImp< Grid, Grid::dimension > > MMeshIncidentInterfaceElementsIterator
The Incident Interface Elements Iterator alias.
Definition: incidentiterator.hh:170
STL namespace.
