dune-grid
2.2.0
|
organizes the caching of sizes for one grid and one GeometryType More...
#include <dune/grid/common/sizecache.hh>
Classes | |
struct | CountLeafEntities |
struct | CountLeafEntitiesBase |
struct | CountLeafEntitiesBase< codim, false > |
struct | CountLevelEntities |
struct | CountLevelEntitiesBase |
struct | CountLevelEntitiesBase< codim, false > |
Public Member Functions | |
SizeCache (const GridType &grid) | |
constructor taking grid reference | |
void | reset () |
reset all cached sizes | |
int | size (int level, int codim) const |
int | size (int level, GeometryType type) const |
int | size (int codim) const |
int | size (const GeometryType type) const |
organizes the caching of sizes for one grid and one GeometryType
Dune::SizeCache< GridImp >::SizeCache | ( | const GridType & | grid | ) | [inline] |
constructor taking grid reference
void Dune::SizeCache< GridImp >::reset | ( | ) | [inline] |
reset all cached sizes
Referenced by Dune::SizeCache< This >::SizeCache().
int Dune::SizeCache< GridImp >::size | ( | int | level, |
int | codim | ||
) | const [inline] |
Return number of grid entities of a given codim on a given level in this process.
Referenced by Dune::SizeCache< This >::size().
int Dune::SizeCache< GridImp >::size | ( | int | level, |
GeometryType | type | ||
) | const [inline] |
Return number of entities per level and geometry type in this process.
int Dune::SizeCache< GridImp >::size | ( | int | codim | ) | const [inline] |
Return number of leaf entities of a given codim in this process.
int Dune::SizeCache< GridImp >::size | ( | const GeometryType | type | ) | const [inline] |
Return number of leaf entities per geometry type in this process.