dune-grid  2.1.1
Classes | Public Types | Public Member Functions | Friends
Dune::YaspEntity< 0, dim, GridImp > Class Template Reference

#include <dune/grid/yaspgrid.hh>

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

List of all members.

Classes

struct  Codim

Public Types

typedef GridImp::ctype ctype
 define type used for coordinates in grid module
typedef MultiYGrid< dim, ctype >
::YGridLevelIterator 
YGLI
typedef SubYGrid< dim, ctype >
::TransformingSubIterator 
TSI
typedef YaspSpecialGeometry
< dim-0, dim, GridImp > 
SpecialGeometry
typedef GridImp::template
Codim< 0 >::Geometry 
Geometry
typedef GridImp::template
Codim< 0 >::EntityPointer 
EntityPointer
 The corresponding entity seed (for storage of entities)
typedef
GridImp::LevelIntersectionIterator 
IntersectionIterator
typedef
GridImp::LevelIntersectionIterator 
LevelIntersectionIterator
typedef
GridImp::LeafIntersectionIterator 
LeafIntersectionIterator
typedef GridImp::HierarchicIterator HierarchicIterator
typedef
GridImp::PersistentIndexType 
PersistentIndexType
 define the type used for persisitent indices
typedef YGrid< dim, ctype >::iTupel iTupel
 define type used for coordinates in grid module
enum  
 know your own codimension More...
enum  
 know your own dimension More...
enum  
 Know dimension of the entity. More...
enum  
 know your own dimension of world More...
typedef GridImp::template
Codim< cd >::EntitySeed 
EntitySeed
 The corresponding entity seed (for storage of entities)

Public Member Functions

 YaspEntity (const GridImp *yg, const YGLI &g, const TSI &it)
int level () const
 level of this element
int index () const
 index is unique and consecutive per level
int globalIndex () const
 globalIndex is unique and consecutive per global level
PartitionType partitionType () const
 return partition type attribute
const Geometrygeometry () const
 geometry of this entity
template<int cc>
int count () const
template<int cc>
Codim< cc >::EntityPointer subEntity (int i) const
EntityPointer father () const
 Inter-level access to father element on coarser grid. Assumes that meshes are nested.
bool hasFather () const
 returns true if father entity exists
const GeometrygeometryInFather () const
const TSItransformingsubiterator () const
const YGLIgridlevel () const
const GridImp * yaspgrid () const
bool isLeaf () const
bool isNew () const
 Returns true, if the entity has been created during the last call to adapt()
bool mightVanish () const
 Returns true, if entity might disappear during the next call to adapt()
IntersectionIterator ibegin () const
 returns intersection iterator for first intersection
LeafIntersectionIterator ileafbegin () const
 returns intersection iterator for first intersection
LevelIntersectionIterator ilevelbegin () const
 returns intersection iterator for first intersection
IntersectionIterator iend () const
 Reference to one past the last neighbor.
LeafIntersectionIterator ileafend () const
 Reference to one past the last neighbor.
LevelIntersectionIterator ilevelend () const
 Reference to one past the last neighbor.
HierarchicIterator hbegin (int maxlevel) const
HierarchicIterator hend (int maxlevel) const
 Returns iterator to one past the last son.
GeometryType type () const
 Return the name of the reference element. The type can be used to access the Dune::GenericReferenceElement.
EntitySeed seed () const

Friends

class Dune::YaspLevelIndexSet< GridImp >
class Dune::YaspLeafIndexSet< GridImp >
class Dune::YaspGlobalIdSet< GridImp >

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


Member Typedef Documentation

template<int dim, class GridImp >
typedef GridImp::ctype Dune::YaspEntity< 0, dim, GridImp >::ctype

define type used for coordinates in grid module

Reimplemented from Dune::EntityDefaultImplementation< 0, dim, GridImp, YaspEntity >.

template<int dim, class GridImp >
typedef GridImp::template Codim<0>::EntityPointer Dune::YaspEntity< 0, dim, GridImp >::EntityPointer

The corresponding entity seed (for storage of entities)

Reimplemented from Dune::EntityDefaultImplementation< 0, dim, GridImp, YaspEntity >.

typedef GridImp::template Codim<cd>::EntitySeed Dune::EntityDefaultImplementation< cd, dim, GridImp, YaspEntity >::EntitySeed [inherited]

The corresponding entity seed (for storage of entities)

template<int dim, class GridImp >
typedef GridImp::template Codim<0>::Geometry Dune::YaspEntity< 0, dim, GridImp >::Geometry
template<int dim, class GridImp >
typedef GridImp::HierarchicIterator Dune::YaspEntity< 0, dim, GridImp >::HierarchicIterator
template<int dim, class GridImp >
typedef GridImp::LevelIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::IntersectionIterator
template<int dim, class GridImp >
typedef YGrid<dim,ctype>::iTupel Dune::YaspEntity< 0, dim, GridImp >::iTupel

define type used for coordinates in grid module

template<int dim, class GridImp >
typedef GridImp::LeafIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::LeafIntersectionIterator
template<int dim, class GridImp >
typedef GridImp::LevelIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::LevelIntersectionIterator
template<int dim, class GridImp >
typedef GridImp::PersistentIndexType Dune::YaspEntity< 0, dim, GridImp >::PersistentIndexType

define the type used for persisitent indices

template<int dim, class GridImp >
typedef YaspSpecialGeometry<dim-0,dim,GridImp> Dune::YaspEntity< 0, dim, GridImp >::SpecialGeometry
template<int dim, class GridImp >
typedef SubYGrid<dim,ctype>::TransformingSubIterator Dune::YaspEntity< 0, dim, GridImp >::TSI
template<int dim, class GridImp >
typedef MultiYGrid<dim,ctype>::YGridLevelIterator Dune::YaspEntity< 0, dim, GridImp >::YGLI

Member Enumeration Documentation

anonymous enum [inherited]

know your own codimension

anonymous enum [inherited]

know your own dimension

anonymous enum [inherited]

Know dimension of the entity.

anonymous enum [inherited]

know your own dimension of world


Constructor & Destructor Documentation

template<int dim, class GridImp >
Dune::YaspEntity< 0, dim, GridImp >::YaspEntity ( const GridImp *  yg,
const YGLI g,
const TSI it 
) [inline]

Member Function Documentation

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

Return number of subentities with codimension cc.

template<int dim, class GridImp >
EntityPointer Dune::YaspEntity< 0, dim, GridImp >::father ( ) const [inline]

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

template<int dim, class GridImp >
const Geometry& Dune::YaspEntity< 0, dim, GridImp >::geometry ( ) const [inline]

geometry of this entity

template<int dim, class GridImp >
const Geometry& Dune::YaspEntity< 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 case 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.

template<int dim, class GridImp >
int Dune::YaspEntity< 0, dim, GridImp >::globalIndex ( ) const [inline]

globalIndex is unique and consecutive per global level

template<int dim, class GridImp >
const YGLI& Dune::YaspEntity< 0, dim, GridImp >::gridlevel ( ) const [inline]
template<int dim, class GridImp >
bool Dune::YaspEntity< 0, dim, GridImp >::hasFather ( ) const [inline]

returns true if father entity exists

template<int dim, class GridImp >
HierarchicIterator Dune::YaspEntity< 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 >
HierarchicIterator Dune::YaspEntity< 0, dim, GridImp >::hend ( int  maxlevel) const [inline]

Returns iterator to one past the last son.

References Dune::YaspEntityPointer< 0, GridImp >::level().

template<int dim, class GridImp >
IntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::ibegin ( ) const [inline]

returns intersection iterator for first intersection

template<int dim, class GridImp >
IntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::iend ( ) const [inline]

Reference to one past the last neighbor.

template<int dim, class GridImp >
LeafIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::ileafbegin ( ) const [inline]

returns intersection iterator for first intersection

template<int dim, class GridImp >
LeafIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::ileafend ( ) const [inline]

Reference to one past the last neighbor.

template<int dim, class GridImp >
LevelIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::ilevelbegin ( ) const [inline]

returns intersection iterator for first intersection

template<int dim, class GridImp >
LevelIntersectionIterator Dune::YaspEntity< 0, dim, GridImp >::ilevelend ( ) const [inline]

Reference to one past the last neighbor.

template<int dim, class GridImp >
int Dune::YaspEntity< 0, dim, GridImp >::index ( ) const [inline]

index is unique and consecutive per level

template<int dim, class GridImp >
bool Dune::YaspEntity< 0, dim, GridImp >::isLeaf ( ) const [inline]
template<int dim, class GridImp >
bool Dune::YaspEntity< 0, dim, GridImp >::isNew ( ) const [inline]

Returns true, if the entity has been created during the last call to adapt()

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

level of this element

template<int dim, class GridImp >
bool Dune::YaspEntity< 0, dim, GridImp >::mightVanish ( ) const [inline]

Returns true, if entity might disappear during the next call to adapt()

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

return partition type attribute

References Dune::GhostEntity, Dune::InteriorEntity, and Dune::OverlapEntity.

EntitySeed Dune::EntityDefaultImplementation< cd, dim, GridImp, YaspEntity >::seed ( ) const [inline, inherited]
Deprecated:
Implement this method in each grid, default implementation of method seed (only when seed == entity pointer)
Deprecated:
template<int dim, class GridImp >
template<int cc>
Codim<cc>::EntityPointer Dune::YaspEntity< 0, dim, GridImp >::subEntity ( int  i) const [inline]

Intra-element access to subentities of codimension cc > codim.

template<int dim, class GridImp >
const TSI& Dune::YaspEntity< 0, dim, GridImp >::transformingsubiterator ( ) const [inline]
GeometryType Dune::EntityDefaultImplementation< cd, dim, GridImp, YaspEntity >::type ( ) const [inline, inherited]

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

template<int dim, class GridImp >
const GridImp* Dune::YaspEntity< 0, dim, GridImp >::yaspgrid ( ) const [inline]

Friends And Related Function Documentation

template<int dim, class GridImp >
friend class Dune::YaspGlobalIdSet< GridImp > [friend]
template<int dim, class GridImp >
friend class Dune::YaspLeafIndexSet< GridImp > [friend]
template<int dim, class GridImp >
friend class Dune::YaspLevelIndexSet< GridImp > [friend]

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