Dune::SingleTypeSizeCache< GridImp > Class 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 >:
Inheritance graph

List of all members.

Classes

struct  CountLeafEntities
struct  CountLeafEntities< SzCacheType, pitype, 0 >
struct  CountLevelEntities
struct  CountLevelEntities< SzCacheType, pitype, 0 >

Public Member Functions

 SingleTypeSizeCache (const GridType &grid, const bool isSimplex, const bool isCube, bool notWorry=false)
int size (int level, int codim) const
 Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know.
int size (int level, int codim, GeometryType type) const
 number of entities per level, codim and geometry type in this process
int size (int codim) const
 number of leaf entities per codim in this process
int size (int codim, GeometryType type) const
 number of leaf entities per codim and geometry type in this process
int ghostSize (int codim) const
 return number of ghost entities for codimension codim
int ghostSize (int level, int codim) const
 ghostSize is zero for this grid

Detailed Description

template<class GridImp>
class 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 GridType &  grid,
const bool  isSimplex,
const bool  isCube,
bool  notWorry = false 
) [inline]

Member Function Documentation

template<class GridImp>
int Dune::SingleTypeSizeCache< GridImp >::ghostSize ( int  codim  )  const [inline]

return number of ghost entities for codimension codim

Referenced by Dune::SizeCache< GridImp >::ghostSize().

template<class GridImp>
int Dune::SingleTypeSizeCache< GridImp >::ghostSize ( int  level,
int  codim 
) const [inline]

ghostSize is zero for this grid

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

number of entities per level, codim and geometry type in this process

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

number of leaf entities per codim and geometry type in this process

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

number of leaf entities per codim in this process

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

Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know.

Referenced by Dune::SingleTypeSizeCache< GridType >::ghostSize(), Dune::SizeCache< GridImp >::size(), Dune::SingleTypeSizeCache< GridType >::size(), and Dune::AlbertaGrid< dim, dimworld >::size().


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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].