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

#include <dune/grid/sgrid.hh>

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

List of all members.

Public Types

typedef GridImp::ctype ctype
 define type used for coordinates in grid module
typedef GridImp::template
Codim< codim >::Geometry 
Geometry
typedef
GridImp::PersistentIndexType 
PersistentIndexType
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).
typedef GridImp::template
Codim< cd >::EntityPointer 
EntityPointer
 The corresponding entity seed (for storage of entities).

Public Member Functions

int level () const
 level of this element
int globalIndex () const
 global index is calculated from the index and grid size
GeometryType type () const
 return the element type identifier
const Geometrygeometry () const
 geometry of this entity
PartitionType partitionType () const
 SEntityBase (GridImp *_grid, int _l, int _index)
 constructor
 SEntityBase ()
 empty constructor
 SEntityBase (const SEntityBase &other)
 copy constructor
void make (GridImp *_grid, int _l, int _id)
 Reinitialization.
void make (int _l, int _id)
 Reinitialization.
void makegeometry () const
 geometry of this entity
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
EntitySeed seed () const

Protected Attributes

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

Friends

class SEntityPointer< codim, GridImp >
class SIntersectionIterator< GridImp >

Detailed Description

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

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


Member Typedef Documentation

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

define type used for coordinates in grid module

Reimplemented from Dune::EntityDefaultImplementation< codim, dim, GridImp, EntityImp >.

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

typedef GridImp::template Codim<cd>::EntityPointer Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::EntityPointer [inherited]

The corresponding entity seed (for storage of entities).

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

The corresponding entity seed (for storage of entities).

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
typedef GridImp::template Codim<codim>::Geometry Dune::SEntityBase< codim, dim, GridImp, EntityImp >::Geometry
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
typedef GridImp::PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::PersistentIndexType

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 codim, int dim, class GridImp, template< int, int, class > class EntityImp>
Dune::SEntityBase< codim, dim, GridImp, EntityImp >::SEntityBase ( GridImp *  _grid,
int  _l,
int  _index 
) [inline]

constructor

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

empty constructor

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

copy constructor


Member Function Documentation

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

consecutive, codim-wise, level-wise index

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

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

consecutive, codim-wise, level-wise index

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
const Geometry& Dune::SEntityBase< codim, dim, GridImp, EntityImp >::geometry (  )  const [inline]

geometry of this entity

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::globalIndex (  )  const

global index is calculated from the index and grid size

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

level of this element

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
void Dune::SEntityBase< codim, dim, GridImp, EntityImp >::make ( GridImp *  _grid,
int  _l,
int  _id 
)

Reinitialization.

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

Referenced by Dune::SEntity< 0, dim, GridImp >::make().

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
void Dune::SEntityBase< codim, dim, GridImp, EntityImp >::make ( int  _l,
int  _id 
)

Reinitialization.

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

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
void Dune::SEntityBase< codim, dim, GridImp, EntityImp >::makegeometry (  )  const

geometry of this entity

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

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
PartitionType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::partitionType (  )  const [inline]
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::persistentIndex (  )  const [inline]

globally unique, persistent index

EntitySeed Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::seed (  )  const [inline, inherited]
Deprecated:
Implement this method in each grid, default implementation of method seed (only when seed == entity pointer)
Deprecated:
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
GeometryType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::type (  )  const [inline]

return the element type identifier

Reimplemented from Dune::EntityDefaultImplementation< codim, dim, GridImp, EntityImp >.


Friends And Related Function Documentation

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
friend class SEntityPointer< codim, GridImp > [friend]
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
friend class SIntersectionIterator< GridImp > [friend]

Member Data Documentation

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
bool Dune::SEntityBase< codim, dim, GridImp, EntityImp >::builtgeometry [mutable, protected]

true if geometry has been constructed

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

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
Geometry Dune::SEntityBase< codim, dim, GridImp, EntityImp >::geo [mutable, protected]

geometry, is only built on demand

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

template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
GridImp* Dune::SEntityBase< codim, dim, GridImp, EntityImp >::grid [protected]
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::index [protected]
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::l [protected]
template<int codim, int dim, class GridImp, template< int, int, class > class EntityImp>
array<int,dim> Dune::SEntityBase< codim, dim, GridImp, EntityImp >::z [protected]

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].