dune-mmesh (1.4)

Dune::MMeshCachingEntity< 0, dim, GridImp > Class Template Reference

The implementation of caching entities in a MMeshThe caching entity copys the CGAL face object instead of holding a Face_handle pointer. More...

#include <dune/mmesh/grid/cachingentity.hh>

Public Types

typedef MMeshLeafIntersectionIterator< GridImp > LeafIntersectionIterator
 The Iterator over intersections on the leaf level.
 
typedef MMeshHierarchicIterator< GridImp > HierarchicIterator
 Iterator over descendants of the entity.
 
typedef GridImp::template Codim< 0 >::EntitySeed EntitySeed
 The type of the EntitySeed interface class.
 
using ConnectedComponent = MMeshConnectedComponent< GridImp >
 The type of a ConnectedComponent.
 
using VertexStorage = std::array< GlobalCoordinate, dim+1 >
 define the type used for storage the vertices of a caching entity
 

Public Member Functions

bool equals (const MMeshCachingEntity &other) const
 returns true if host entities are equal
 
bool operator== (const MMeshCachingEntity &other) const
 returns true if host entities are equal
 
bool operator== (const MMeshEntityType &entity) const
 returns true if caching entity has same id like mmesh entity
 
bool operator< (const MMeshCachingEntity &other) const
 returns true if id of other is greater
 
bool hasFather () const
 returns true if father entity exists
 
const bool isNew () const
 returns true if this entity is new after adaptation
 
const bool mightVanish () const
 returns true if this entity will vanish after adaptation
 
int level () const
 Level of this element.
 
PartitionType partitionType () const
 The partition type for parallel computing.
 
Geometry geometry () const
 Geometry of this entity.
 
unsigned int subEntities (unsigned int cc) const
 Return the number of subEntities of codimension cc.
 
bool isLeaf () const
 returns true if Entity has no children
 
template<int d = dim>
std::enable_if_t< d==2, ctype > intersectionVolume (const MMeshEntityType &entity) const
 calculates the intersection volume with another MMesh entity
 
bool equals (const MMeshEntity &other) const
 returns true if host entities are equal
 
bool operator== (const MMeshEntity &other) const
 returns true if host entities are equal
 
bool operator< (const MMeshEntity &other) const
 returns true if host entities are equal
 
MMeshEntity father () const
 returns the father entity
 
void setIsNew (bool isNew) const
 set if this entity is new after adaptation
 
void setWillVanish (bool mightVanish) const
 set if this entity will vanish after adaptation
 
void mark (int refCount) const
 mark entity for refine or coarse
 
int getMark () const
 get mark of entity
 
EntitySeed seed () const
 Create EntitySeed.
 
LocalGeometry geometryInFather () const
 Geometry of this entity in bounded father entity ( assumption: this \subset father )
 
template<int cc>
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.
 
MMeshLeafIntersectionIterator< GridImp > ileafbegin () const
 First leaf intersection.
 
MMeshLeafIntersectionIterator< GridImp > ileafend () const
 Reference to one past the last leaf intersection.
 
MMeshLeafIntersectionIterator< GridImp > ilevelbegin () const
 We only have one level.
 
MMeshHierarchicIterator< GridImp > hbegin (int maxlevel) const
 First hierarchic entity, i.e. this entity, because we only have one level.
 
MMeshHierarchicIterator< GridImp > hend (int maxlevel) const
 Reference to one past the last hierarchic entity.
 
bool wasRefined () const
 returns if grid was refined
 
bool mightBeCoarsened () const
 returns if grid might be coarsened
 
GeometryType type () const
 returns the geometry type
 
std::size_t domainMarker () const
 Return domain marker of entity.
 
const HostGridEntity & hostEntity () const
 Return the host entity.
 
HostGridEntity & hostEntity ()
 Return the host entity.
 
const GridImp & grid () const
 Return the host grid.
 
IdType id () const
 Return id computed by vertex ids.
 

Protected Attributes

VertexStorage vertex_
 the vertices of the host entity object of this entity (for caching entity)
 

Detailed Description

template<int dim, class GridImp>
class Dune::MMeshCachingEntity< 0, dim, GridImp >

The implementation of caching entities in a MMesh

The caching entity copys the CGAL face object instead of holding a Face_handle pointer.

A Grid is a container of grid entities. An entity is parametrized by the codimension. An entity of codimension c in dimension d is a d-c dimensional object.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 14, 22:45, 2025)