dune-grid 2.9.0
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Dune::IdentityGridEntity< 0, dim, GridImp > Class Template Reference

Specialization for codim-0-entities. More...

#include <dune/grid/identitygrid/identitygridentity.hh>

Inheritance diagram for Dune::IdentityGridEntity< 0, dim, GridImp >:
Inheritance graph

Public Types

typedef GridImp::HostGridType::Traits::template Codim< CodimInHostGrid >::Entity HostGridEntity
 
typedef GridImp::template Codim< 0 >::Geometry Geometry
 
typedef GridImp::template Codim< 0 >::LocalGeometry LocalGeometry
 
typedef IdentityGridLevelIntersectionIterator< GridImp > LevelIntersectionIterator
 The Iterator over intersections on this level. More...
 
typedef IdentityGridLeafIntersectionIterator< GridImp > LeafIntersectionIterator
 The Iterator over intersections on the leaf level. More...
 
typedef IdentityGridHierarchicIterator< GridImp > HierarchicIterator
 Iterator over descendants of the entity. More...
 
typedef GridImp::template Codim< 0 >::EntitySeed EntitySeed
 The type of the EntitySeed interface class. More...
 

Public Member Functions

 IdentityGridEntity ()
 
 IdentityGridEntity (const GridImp *identityGrid, const HostGridEntity &hostEntity)
 
 IdentityGridEntity (const GridImp *identityGrid, HostGridEntity &&hostEntity)
 
 IdentityGridEntity (const IdentityGridEntity &original)
 
 IdentityGridEntity (IdentityGridEntity &&original)
 
IdentityGridEntityoperator= (const IdentityGridEntity &original)
 
IdentityGridEntityoperator= (IdentityGridEntity &&original)
 
bool equals (const IdentityGridEntity &other) const
 
bool hasFather () const
 returns true if father entity exists More...
 
EntitySeed seed () const
 Create EntitySeed. More...
 
int level () const
 Level of this element. More...
 
PartitionType partitionType () const
 The partition type for parallel computing. More...
 
Geometry geometry () const
 Geometry of this entity. More...
 
unsigned int subEntities (unsigned int codim) const
 Return the number of subEntities of codimension codim. More...
 
template<int cc>
GridImp::template Codim< cc >::Entity subEntity (int i) const
 Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1. More...
 
IdentityGridLevelIntersectionIterator< GridImp > ilevelbegin () const
 First level intersection. More...
 
IdentityGridLevelIntersectionIterator< GridImp > ilevelend () const
 Reference to one past the last neighbor. More...
 
IdentityGridLeafIntersectionIterator< GridImp > ileafbegin () const
 First leaf intersection. More...
 
IdentityGridLeafIntersectionIterator< GridImp > ileafend () const
 Reference to one past the last leaf intersection. More...
 
bool isLeaf () const
 returns true if Entity has NO children More...
 
GridImp::template Codim< 0 >::Entity father () const
 
LocalGeometry geometryInFather () const
 Location of this element relative to the reference element element of the father. This is sufficient to interpolate all dofs in conforming case. Nonconforming may require access to neighbors of father and computations with local coordinates. On the fly case is somewhat inefficient since dofs are visited several times. If we store interpolation matrices, this is tolerable. We assume that on-the-fly implementation of numerical algorithms is only done for simple discretizations. Assumes that meshes are nested. More...
 
IdentityGridHierarchicIterator< GridImp > hbegin (int maxLevel) const
 Inter-level access to son elements on higher levels<=maxlevel. This is provided for sparsely stored nested unstructured meshes. Returns iterator to first son. More...
 
IdentityGridHierarchicIterator< GridImp > hend (int maxLevel) const
 Returns iterator to one past the last son. More...
 
bool wasRefined () const
 
bool mightBeCoarsened () const
 
GeometryType type () const
 Return the name of the reference element. The type can be used to access the Dune::ReferenceElement. More...
 

Public Attributes

HostGridEntity hostEntity_
 
const GridImp * identityGrid_
 

Static Public Attributes

static constexpr int CodimInHostGrid = GridImp::HostGridType::dimension - GridImp::dimension
 
static constexpr int codimension
 know your own codimension More...
 
static constexpr int dimension
 Dimension of the grid. More...
 
static constexpr int mydimension
 Know dimension of the entity. More...
 

Detailed Description

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

Specialization for codim-0-entities.

This class embodies the topological parts of elements of the grid. It has an extended interface compared to the general entity class. For example, Entities of codimension 0 allow to visit all neighbors.

Member Typedef Documentation

◆ EntitySeed

template<int dim, class GridImp >
typedef GridImp::template Codim<0>::EntitySeed Dune::IdentityGridEntity< 0, dim, GridImp >::EntitySeed

The type of the EntitySeed interface class.

◆ Geometry

template<int dim, class GridImp >
typedef GridImp::template Codim<0>::Geometry Dune::IdentityGridEntity< 0, dim, GridImp >::Geometry

◆ HierarchicIterator

template<int dim, class GridImp >
typedef IdentityGridHierarchicIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::HierarchicIterator

Iterator over descendants of the entity.

◆ HostGridEntity

template<int dim, class GridImp >
typedef GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Entity Dune::IdentityGridEntity< 0, dim, GridImp >::HostGridEntity

◆ LeafIntersectionIterator

template<int dim, class GridImp >
typedef IdentityGridLeafIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::LeafIntersectionIterator

The Iterator over intersections on the leaf level.

◆ LevelIntersectionIterator

template<int dim, class GridImp >
typedef IdentityGridLevelIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::LevelIntersectionIterator

The Iterator over intersections on this level.

◆ LocalGeometry

template<int dim, class GridImp >
typedef GridImp::template Codim<0>::LocalGeometry Dune::IdentityGridEntity< 0, dim, GridImp >::LocalGeometry

Constructor & Destructor Documentation

◆ IdentityGridEntity() [1/5]

template<int dim, class GridImp >
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity ( )
inline

◆ IdentityGridEntity() [2/5]

template<int dim, class GridImp >
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity ( const GridImp *  identityGrid,
const HostGridEntity hostEntity 
)
inline

◆ IdentityGridEntity() [3/5]

template<int dim, class GridImp >
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity ( const GridImp *  identityGrid,
HostGridEntity &&  hostEntity 
)
inline

◆ IdentityGridEntity() [4/5]

template<int dim, class GridImp >
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity ( const IdentityGridEntity< 0, dim, GridImp > &  original)
inline
Todo:
Please doc me !

◆ IdentityGridEntity() [5/5]

template<int dim, class GridImp >
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity ( IdentityGridEntity< 0, dim, GridImp > &&  original)
inline

Member Function Documentation

◆ equals()

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::equals ( const IdentityGridEntity< 0, dim, GridImp > &  other) const
inline

◆ father()

template<int dim, class GridImp >
GridImp::template Codim< 0 >::Entity Dune::IdentityGridEntity< 0, dim, GridImp >::father ( ) const
inline

Inter-level access to father element on coarser grid. Assumes that meshes are nested.

◆ geometry()

template<int dim, class GridImp >
Geometry Dune::IdentityGridEntity< 0, dim, GridImp >::geometry ( ) const
inline

Geometry of this entity.

◆ geometryInFather()

template<int dim, class GridImp >
LocalGeometry Dune::IdentityGridEntity< 0, dim, GridImp >::geometryInFather ( ) const
inline

Location of this element relative to the reference element element of the father. This is sufficient to interpolate all dofs in conforming case. Nonconforming may require access to neighbors of father and computations with local coordinates. On the fly case is somewhat inefficient since dofs are visited several times. If we store interpolation matrices, this is tolerable. We assume that on-the-fly implementation of numerical algorithms is only done for simple discretizations. Assumes that meshes are nested.

◆ hasFather()

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::hasFather ( ) const
inline

returns true if father entity exists

◆ hbegin()

template<int dim, class GridImp >
IdentityGridHierarchicIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::hbegin ( int  maxLevel) const
inline

Inter-level access to son elements on higher levels<=maxlevel. This is provided for sparsely stored nested unstructured meshes. Returns iterator to first son.

◆ hend()

template<int dim, class GridImp >
IdentityGridHierarchicIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::hend ( int  maxLevel) const
inline

Returns iterator to one past the last son.

◆ ileafbegin()

template<int dim, class GridImp >
IdentityGridLeafIntersectionIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::ileafbegin ( ) const
inline

First leaf intersection.

◆ ileafend()

template<int dim, class GridImp >
IdentityGridLeafIntersectionIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::ileafend ( ) const
inline

Reference to one past the last leaf intersection.

◆ ilevelbegin()

template<int dim, class GridImp >
IdentityGridLevelIntersectionIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::ilevelbegin ( ) const
inline

First level intersection.

◆ ilevelend()

template<int dim, class GridImp >
IdentityGridLevelIntersectionIterator< GridImp > Dune::IdentityGridEntity< 0, dim, GridImp >::ilevelend ( ) const
inline

Reference to one past the last neighbor.

◆ isLeaf()

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::isLeaf ( ) const
inline

returns true if Entity has NO children

◆ level()

template<int dim, class GridImp >
int Dune::IdentityGridEntity< 0, dim, GridImp >::level ( ) const
inline

Level of this element.

◆ mightBeCoarsened()

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::mightBeCoarsened ( ) const
inline
Todo:
Please doc me !

◆ operator=() [1/2]

template<int dim, class GridImp >
IdentityGridEntity & Dune::IdentityGridEntity< 0, dim, GridImp >::operator= ( const IdentityGridEntity< 0, dim, GridImp > &  original)
inline
Todo:
Please doc me !

◆ operator=() [2/2]

template<int dim, class GridImp >
IdentityGridEntity & Dune::IdentityGridEntity< 0, dim, GridImp >::operator= ( IdentityGridEntity< 0, dim, GridImp > &&  original)
inline
Todo:
Please doc me !

◆ partitionType()

template<int dim, class GridImp >
PartitionType Dune::IdentityGridEntity< 0, dim, GridImp >::partitionType ( ) const
inline

The partition type for parallel computing.

◆ seed()

template<int dim, class GridImp >
EntitySeed Dune::IdentityGridEntity< 0, dim, GridImp >::seed ( ) const
inline

Create EntitySeed.

◆ subEntities()

template<int dim, class GridImp >
unsigned int Dune::IdentityGridEntity< 0, dim, GridImp >::subEntities ( unsigned int  codim) const
inline

Return the number of subEntities of codimension codim.

◆ subEntity()

template<int dim, class GridImp >
template<int cc>
GridImp::template Codim< cc >::Entity Dune::IdentityGridEntity< 0, dim, GridImp >::subEntity ( int  i) const
inline

Provide access to sub entity i of given codimension. Entities are numbered 0 ... subEntities(cc)-1.

◆ type()

GeometryType Dune::EntityDefaultImplementation< cd, dim, GridImp, IdentityGridEntity >::type ( ) const
inlineinherited

Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.

◆ wasRefined()

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::wasRefined ( ) const
inline
Todo:
Please doc me !

Member Data Documentation

◆ codimension

constexpr int Dune::EntityDefaultImplementation< cd, dim, GridImp, IdentityGridEntity >::codimension
staticconstexprinherited

know your own codimension

◆ CodimInHostGrid

template<int dim, class GridImp >
constexpr int Dune::IdentityGridEntity< 0, dim, GridImp >::CodimInHostGrid = GridImp::HostGridType::dimension - GridImp::dimension
staticconstexpr

◆ dimension

constexpr int Dune::EntityDefaultImplementation< cd, dim, GridImp, IdentityGridEntity >::dimension
staticconstexprinherited

Dimension of the grid.

◆ hostEntity_

template<int dim, class GridImp >
HostGridEntity Dune::IdentityGridEntity< 0, dim, GridImp >::hostEntity_

◆ identityGrid_

template<int dim, class GridImp >
const GridImp* Dune::IdentityGridEntity< 0, dim, GridImp >::identityGrid_

◆ mydimension

constexpr int Dune::EntityDefaultImplementation< cd, dim, GridImp, IdentityGridEntity >::mydimension
staticconstexprinherited

Know dimension of the entity.


The documentation for this class was generated from the following file: