dune-grid  2.3.0
Public Member Functions | List of all members
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 >

Public Member Functions

 SingleTypeSizeCache (const GridImp &grid, bool isSimplex, bool isCube, bool notWorry=false)
 
void reset ()
 reset all cached sizes More...
 
int size (int level, int codim) const
 Return number of grid entities of a given codim on a given level in this process. More...
 
int size (int level, GeometryType type) const
 Return number of entities per level and geometry type in this process. More...
 
int size (int codim) const
 Return number of leaf entities of a given codim in this process. More...
 
int size (const GeometryType type) const
 Return number of leaf entities per geometry type in this process. More...
 

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 ( )
inlineinherited

reset all cached sizes

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

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  level,
int  codim 
) const
inlineinherited

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

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

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  level,
GeometryType  type 
) const
inlineinherited

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

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( int  codim) const
inlineinherited

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

template<class GridImp>
int Dune::SizeCache< GridImp >::size ( const GeometryType  type) const
inlineinherited

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


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