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

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. More...

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

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

Public Types

enum  { CodimInHostGrid = GridImp::HostGridType::dimension - GridImp::dimension }
 
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...
 
enum  
 know your own codimension More...
 
enum  
 Dimension of the grid. More...
 
enum  
 Know dimension of the entity. More...
 
typedef GridImp::template
Codim< cd >::EntityPointer 
EntityPointer
 The corresponding entity seed (for storage of entities) 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...
 
template<int cc>
int count () const
 Return the number of subEntities of codimension cc. 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 ... count<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_
 

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

typedef GridImp::template Codim<cd>::EntityPointer Dune::EntityDefaultImplementation< cd, dim, GridImp, IdentityGridEntity >::EntityPointer
inherited

The corresponding entity seed (for storage of entities)

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

The type of the EntitySeed interface class.

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

Iterator over descendants of the entity.

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

The Iterator over intersections on the leaf level.

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

The Iterator over intersections on this level.

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

Member Enumeration Documentation

anonymous enum
inherited

know your own codimension

anonymous enum
inherited

Dimension of the grid.

anonymous enum
inherited

Know dimension of the entity.

template<int dim, class GridImp >
anonymous enum
Enumerator
CodimInHostGrid 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Return the number of subEntities of codimension cc.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

template<int dim, class GridImp >
bool Dune::IdentityGridEntity< 0, dim, GridImp >::equals ( const IdentityGridEntity< 0, dim, GridImp > &  other) const
inline
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.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_, and Dune::IdentityGridEntity< codim, dim, GridImp >::IdentityGridEntity().

template<int dim, class GridImp >
Geometry Dune::IdentityGridEntity< 0, dim, GridImp >::geometry ( ) const
inline
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.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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

returns true if father entity exists

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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.

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.

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

Reference to one past the last leaf intersection.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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

returns true if Entity has NO children

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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

The partition type for parallel computing.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

template<int dim, class GridImp >
EntitySeed Dune::IdentityGridEntity< 0, dim, GridImp >::seed ( ) const
inline
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.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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 ... count<cc>()-1.

References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.

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.

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

Member Data Documentation

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

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