dune-foamgrid  2.8-git
Public Member Functions | List of all members
Dune::FoamGridLevelIndexSet< GridImp > Class Template Reference

#include <dune/foamgrid/foamgrid/foamgridindexsets.hh>

Inheritance diagram for Dune::FoamGridLevelIndexSet< GridImp >:
Inheritance graph

Public Member Functions

 FoamGridLevelIndexSet (const GridImp &grid, int level)
 
template<int codim>
int index (const typename GridImp::Traits::template Codim< codim >::Entity &e) const
 get index of an entity More...
 
template<int cc>
int subIndex (const typename GridImp::Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const
 get index of subentity of an entity More...
 
int size (int codim) const
 get number of entities of given codim, type and on this level More...
 
int size (GeometryType type) const
 get number of entities of given codim, type and on this level More...
 
const std::vector< GeometryType > & geomTypes (int codim) const
 Deliver all geometry types used in this grid. More...
 
std::vector< GeometryType > types (int codim) const
 Deliver all geometry types used in this grid. More...
 
template<class EntityType >
bool contains (const EntityType &e) const
 Return true if the given entity is contained in the index set. More...
 
void update ()
 Set up the index set. More...
 

Detailed Description

template<class GridImp>
class Dune::FoamGridLevelIndexSet< GridImp >

Todo:
Take the index types from the host grid

Constructor & Destructor Documentation

◆ FoamGridLevelIndexSet()

template<class GridImp >
Dune::FoamGridLevelIndexSet< GridImp >::FoamGridLevelIndexSet ( const GridImp &  grid,
int  level 
)
inline

Member Function Documentation

◆ contains()

template<class GridImp >
template<class EntityType >
bool Dune::FoamGridLevelIndexSet< GridImp >::contains ( const EntityType &  e) const
inline

Return true if the given entity is contained in the index set.

This checks only for the level. We assume that e belongs to the correct grid

◆ geomTypes()

template<class GridImp >
const std::vector<GeometryType>& Dune::FoamGridLevelIndexSet< GridImp >::geomTypes ( int  codim) const
inline

Deliver all geometry types used in this grid.

◆ index()

template<class GridImp >
template<int codim>
int Dune::FoamGridLevelIndexSet< GridImp >::index ( const typename GridImp::Traits::template Codim< codim >::Entity &  e) const
inline

get index of an entity

◆ size() [1/2]

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

get number of entities of given codim, type and on this level

◆ size() [2/2]

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

get number of entities of given codim, type and on this level

◆ subIndex()

template<class GridImp >
template<int cc>
int Dune::FoamGridLevelIndexSet< GridImp >::subIndex ( const typename GridImp::Traits::template Codim< cc >::Entity &  e,
int  i,
unsigned int  codim 
) const
inline

get index of subentity of an entity

◆ types()

template<class GridImp >
std::vector<GeometryType> Dune::FoamGridLevelIndexSet< GridImp >::types ( int  codim) const
inline

Deliver all geometry types used in this grid.

◆ update()

template<class GridImp >
void Dune::FoamGridLevelIndexSet< GridImp >::update ( )
inline

Set up the index set.

Todo:
Remove this const cast
Todo:
Remove this const cast
Todo:
Remove this const cast

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