Dune::SEntityBase< codim, dim, GridImp > Class Template Reference

#include <sgrid.hh>

Inheritance diagram for Dune::SEntityBase< codim, dim, GridImp >:

Dune::SEntity< codim, dim, GridImp >

List of all members.


Detailed Description

template<int codim, int dim, class GridImp>
class Dune::SEntityBase< codim, dim, GridImp >

SEntityBase contains the part of SEntity that can be defined without specialization. This is the base for all SEntity classes with dim>0.

Public Member Functions

int level () const
 level of this element
int index () const
int globalIndex () const
 global index is calculated from the index and grid size
const Geometrygeometry () const
 geometry of this entity
 SEntityBase (GridImp *_grid, int _l, int _id)
 constructor
void make (int _l, int _id)
 Reinitialization.
PersistentIndexType persistentIndex () const
 globally unique, persistent index
int compressedIndex () const
 consecutive, codim-wise, level-wise index
int compressedLeafIndex () const
 consecutive, codim-wise, level-wise index

Protected Attributes

GridImp * grid
 grid containes mapper, geometry, etc.
int l
 level where element is on
int id
 my consecutive id
array< int, dim > z
 my coordinate, number of even components = codim
MakeableGeometry geo
 geometry, is only built on demand
bool builtgeometry
 true if geometry has been constructed

Member Function Documentation

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

index is unique and consecutive per level and codim used for access to degrees of freedom

Reimplemented in Dune::SEntity< codim, dim, GridImp >, Dune::SEntity< 0, dim, GridImp >, and Dune::SEntity< dim, dim, GridImp >.

Referenced by Dune::SEntityBase< codim, dim, GridImp >::globalIndex().


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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].