Dune Core Modules (2.6.0)

Dune::SizeCache< GridImp > Class Template Reference

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

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

Public Member Functions

 SizeCache (const GridType &grid)
 constructor taking grid reference
 
void reset ()
 reset all cached sizes
 
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>
class Dune::SizeCache< GridImp >

organizes the caching of sizes for one grid and one GeometryType

Member Function Documentation

◆ size() [1/4]

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

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

References Dune::Std::apply(), Dune::GeometryType::dim(), and Dune::Hybrid::forEach().

◆ size() [2/4]

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

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

References Dune::Std::apply(), and Dune::Hybrid::forEach().

◆ size() [3/4]

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

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

References Dune::Std::apply(), Dune::GeometryType::dim(), and Dune::Hybrid::forEach().

◆ size() [4/4]

template<class GridImp >
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.

References Dune::Std::apply(), Dune::Hybrid::forEach(), and Dune::SizeCache< GridImp >::size().

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


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)