dune-grid  2.2.1
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
Dune::SEntity< codim, dim, GridImp > Class Template Reference

#include <dune/grid/sgrid.hh>

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

Public Types

typedef GridImp::ctype ctype
 
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) More...
 
typedef GridImp::template
Codim< cd >::EntityPointer 
EntityPointer
 The corresponding entity seed (for storage of entities) More...
 

Public Member Functions

 SEntity (GridImp *_grid, int _l, int _id)
 constructor More...
 
int level () const
 level of this element More...
 
int globalIndex () const
 global index is calculated from the index and grid size More...
 
SEntitySeed< codim, GridImp > seed () const
 Return the entity seed which contains sufficient information to generate the entity again and uses as less memory as possible. More...
 
GeometryType type () const
 return the element type identifier More...
 
Geometry geometry () const
 geometry of this entity More...
 
PartitionType partitionType () const
 
void make (GridImp *_grid, int _l, int _id)
 Reinitialization. More...
 
void make (int _l, int _id)
 Reinitialization. More...
 
void makegeometry () const
 geometry of this entity More...
 
PersistentIndexType persistentIndex () const
 globally unique, persistent index More...
 
int compressedIndex () const
 consecutive, codim-wise, level-wise index More...
 
int compressedLeafIndex () const
 consecutive, codim-wise, level-wise index More...
 

Protected Attributes

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

Friends

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

Detailed Description

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

A Grid is a container of grid entities. An entity is parametrized by the codimension. An entity of codimension c in dimension d is a d-c dimensional object.

Member Typedef Documentation

typedef GridImp::ctype Dune::SEntityBase< codim, dim, GridImp, SEntity >::ctype
inherited
typedef GridImp::template Codim<cd>::EntityPointer Dune::EntityDefaultImplementation< cd, dim, GridImp, SEntity >::EntityPointer
inherited

The corresponding entity seed (for storage of entities)

typedef GridImp::template Codim<cd>::EntitySeed Dune::EntityDefaultImplementation< cd, dim, GridImp, SEntity >::EntitySeed
inherited

The corresponding entity seed (for storage of entities)

typedef GridImp::template Codim<codim>::Geometry Dune::SEntityBase< codim, dim, GridImp, SEntity >::Geometry
inherited
typedef GridImp::PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, SEntity >::PersistentIndexType
inherited

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>
Dune::SEntity< codim, dim, GridImp >::SEntity ( GridImp *  _grid,
int  _l,
int  _id 
)
inline

constructor

Member Function Documentation

int Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedIndex ( ) const
inlineinherited
int Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedLeafIndex ( ) const
inlineinherited
Geometry Dune::SEntityBase< codim, dim, GridImp, SEntity >::geometry ( ) const
inlineinherited
int Dune::SEntityBase< codim, dim, GridImp, SEntity >::globalIndex ( ) const
inherited

global index is calculated from the index and grid size

int Dune::SEntityBase< codim, dim, GridImp, SEntity >::level ( ) const
inlineinherited
void Dune::SEntityBase< codim, dim, GridImp, SEntity >::make ( GridImp *  _grid,
int  _l,
int  _id 
)
inherited

Reinitialization.

void Dune::SEntityBase< codim, dim, GridImp, SEntity >::make ( int  _l,
int  _id 
)
inherited

Reinitialization.

void Dune::SEntityBase< codim, dim, GridImp, SEntity >::makegeometry ( ) const
inherited

geometry of this entity

PartitionType Dune::SEntityBase< codim, dim, GridImp, SEntity >::partitionType ( ) const
inlineinherited

References Dune::InteriorEntity.

PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, SEntity >::persistentIndex ( ) const
inlineinherited
SEntitySeed<codim, GridImp> Dune::SEntityBase< codim, dim, GridImp, SEntity >::seed ( ) const
inlineinherited

Return the entity seed which contains sufficient information to generate the entity again and uses as less memory as possible.

References Dune::SEntityBase< codim, dim, GridImp, EntityImp >::index, and Dune::SEntityBase< codim, dim, GridImp, EntityImp >::l.

GeometryType Dune::SEntityBase< codim, dim, GridImp, SEntity >::type ( ) const
inlineinherited

return the element type identifier

References Dune::cube.

Friends And Related Function Documentation

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

Member Data Documentation

bool Dune::SEntityBase< codim, dim, GridImp, SEntity >::builtgeometry
mutableprotectedinherited

true if geometry has been constructed

GeometryImpl Dune::SEntityBase< codim, dim, GridImp, SEntity >::geo
mutableprotectedinherited

geometry, is only built on demand

GridImp* Dune::SEntityBase< codim, dim, GridImp, SEntity >::grid
protectedinherited
int Dune::SEntityBase< codim, dim, GridImp, SEntity >::index
protectedinherited

my consecutive index

int Dune::SEntityBase< codim, dim, GridImp, SEntity >::l
protectedinherited
array<int,dim> Dune::SEntityBase< codim, dim, GridImp, SEntity >::z
protectedinherited

my coordinate, number of even components = codim


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