dune-grid  2.2.0
Public Member Functions
Dune::SingleTypeSizeCache< GridImp > Struct Template Reference

organizes the caching of sizes for one grid and one GeometryType More...

#include <dune/grid/common/sizecache.hh>

Inheritance diagram for Dune::SingleTypeSizeCache< GridImp >:
Dune::SizeCache< GridImp >

List of all members.

Public Member Functions

 SingleTypeSizeCache (const GridImp &grid, bool isSimplex, bool isCube, bool notWorry=false)
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

Detailed Description

template<class GridImp>
struct Dune::SingleTypeSizeCache< GridImp >

organizes the caching of sizes for one grid and one GeometryType


Constructor & Destructor Documentation

template<class GridImp >
Dune::SingleTypeSizeCache< GridImp >::SingleTypeSizeCache ( const GridImp &  grid,
bool  isSimplex,
bool  isCube,
bool  notWorry = false 
) [inline]

Member Function Documentation

template<class GridImp>
void Dune::SizeCache< GridImp >::reset ( ) [inline, inherited]

reset all cached sizes

Referenced by Dune::SizeCache< This >::SizeCache().

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  level,
int  codim 
) const [inline, inherited]

Return number of grid entities of a given codim on a given level in this process.

Referenced by Dune::SizeCache< This >::size().

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  level,
GeometryType  type 
) const [inline, inherited]

Return number of entities per level and geometry type in this process.

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  codim) const [inline, inherited]

Return number of leaf entities of a given codim in this process.

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( const GeometryType  type) const [inline, inherited]

Return number of leaf entities per geometry type in this process.


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