dune-grid
2.2.0
|
#include <dune/grid/sgrid.hh>
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 | |
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. | |
GeometryType | type () const |
return the element type identifier | |
Geometry | geometry () 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 | |
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 | |
GeometryImpl | geo |
geometry, is only built on demand | |
bool | builtgeometry |
true if geometry has been constructed | |
Friends | |
class | SEntityPointer< codim, GridImp > |
class | SIntersectionIterator< GridImp > |
SEntityBase contains the part of SEntity that can be defined without specialization. This is the base for all SEntity classes with dim>0.
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)
typedef GridImp::template Codim<codim>::Geometry Dune::SEntityBase< codim, dim, GridImp, EntityImp >::Geometry |
Reimplemented in Dune::SEntity< 0, dim, GridImp >.
typedef GridImp::PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::PersistentIndexType |
Reimplemented in Dune::SEntity< 0, dim, GridImp >.
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
Dune::SEntityBase< codim, dim, GridImp, EntityImp >::SEntityBase | ( | GridImp * | _grid, |
int | _l, | ||
int | _index | ||
) | [inline] |
constructor
Dune::SEntityBase< codim, dim, GridImp, EntityImp >::SEntityBase | ( | ) | [inline] |
empty constructor
Dune::SEntityBase< codim, dim, GridImp, EntityImp >::SEntityBase | ( | const SEntityBase< codim, dim, GridImp, EntityImp > & | other | ) | [inline] |
copy constructor
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().
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::compressedLeafIndex | ( | ) | const [inline] |
consecutive, codim-wise, level-wise index
Geometry Dune::SEntityBase< codim, dim, GridImp, EntityImp >::geometry | ( | ) | const [inline] |
geometry of this entity
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::globalIndex | ( | ) | const |
global index is calculated from the index and grid size
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::level | ( | ) | const [inline] |
level of this element
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().
void Dune::SEntityBase< codim, dim, GridImp, EntityImp >::make | ( | int | _l, |
int | _id | ||
) |
Reinitialization.
Reimplemented in Dune::SEntity< 0, dim, GridImp >.
void Dune::SEntityBase< codim, dim, GridImp, EntityImp >::makegeometry | ( | ) | const |
geometry of this entity
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::geometry().
PartitionType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::partitionType | ( | ) | const [inline] |
PersistentIndexType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::persistentIndex | ( | ) | const [inline] |
globally unique, persistent index
SEntitySeed<codim, GridImp> Dune::SEntityBase< codim, dim, GridImp, EntityImp >::seed | ( | ) | const [inline] |
Return the entity seed which contains sufficient information to generate the entity again and uses as less memory as possible.
GeometryType Dune::SEntityBase< codim, dim, GridImp, EntityImp >::type | ( | ) | const [inline] |
return the element type identifier
Reimplemented from Dune::EntityDefaultImplementation< codim, dim, GridImp, EntityImp >.
friend class SEntityPointer< codim, GridImp > [friend] |
Reimplemented in Dune::SEntity< codim, dim, GridImp >.
friend class SIntersectionIterator< GridImp > [friend] |
Reimplemented in Dune::SEntity< 0, dim, GridImp >, and Dune::SEntity< codim, dim, GridImp >.
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().
GeometryImpl Dune::SEntityBase< codim, dim, GridImp, EntityImp >::geo [mutable, protected] |
geometry, is only built on demand
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::geometry().
GridImp* Dune::SEntityBase< codim, dim, GridImp, EntityImp >::grid [protected] |
grid containes mapper, geometry, etc.
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedLeafIndex(), and Dune::SEntityBase< codim, dim, GridImp, SEntity >::persistentIndex().
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::index [protected] |
my consecutive index
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedIndex(), and Dune::SEntityBase< codim, dim, GridImp, SEntity >::seed().
int Dune::SEntityBase< codim, dim, GridImp, EntityImp >::l [protected] |
level where element is on
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedLeafIndex(), Dune::SEntityBase< codim, dim, GridImp, SEntity >::level(), Dune::SEntityBase< codim, dim, GridImp, SEntity >::persistentIndex(), and Dune::SEntityBase< codim, dim, GridImp, SEntity >::seed().
array<int,dim> Dune::SEntityBase< codim, dim, GridImp, EntityImp >::z [protected] |
my coordinate, number of even components = codim
Referenced by Dune::SEntityBase< codim, dim, GridImp, SEntity >::compressedLeafIndex(), and Dune::SEntityBase< codim, dim, GridImp, SEntity >::persistentIndex().