#include <dune/grid/identitygrid/identitygridindexsets.hh>
Public Types | |
enum | { dim = GridImp::dimension } |
typedef remove_const< GridImp > ::type::HostGridType | HostGrid |
Public Member Functions | |
template<int codim> | |
int | index (const typename GridImp::Traits::template Codim< codim >::Entity &e) const |
get index of an entity | |
int | subIndex (const typename GridImp::Traits::template Codim< 0 >::Entity &e, int i, int codim) const |
get index of subEntity of a codim 0 entity | |
int | size (int codim) const |
get number of entities of given codim, type and on this level | |
int | size (GeometryType type) const |
get number of entities of given codim, type and on this level | |
const std::vector< GeometryType > & | geomTypes (int codim) const |
Deliver all geometry types used in this grid. | |
template<class EntityType > | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in the index set. | |
void | update (const GridImp &grid, int level) |
Set up the index set. | |
Public Attributes | |
GridImp * | grid_ |
int | level_ |
typedef remove_const<GridImp>::type::HostGridType Dune::IdentityGridLevelIndexSet< GridImp >::HostGrid |
bool Dune::IdentityGridLevelIndexSet< GridImp >::contains | ( | const EntityType & | e | ) | const [inline] |
Return true if the given entity is contained in the index set.
const std::vector<GeometryType>& Dune::IdentityGridLevelIndexSet< GridImp >::geomTypes | ( | int | codim | ) | const [inline] |
Deliver all geometry types used in this grid.
int Dune::IdentityGridLevelIndexSet< GridImp >::index | ( | const typename GridImp::Traits::template Codim< codim >::Entity & | e | ) | const [inline] |
get index of an entity
int Dune::IdentityGridLevelIndexSet< GridImp >::size | ( | GeometryType | type | ) | const [inline] |
get number of entities of given codim, type and on this level
int Dune::IdentityGridLevelIndexSet< GridImp >::size | ( | int | codim | ) | const [inline] |
get number of entities of given codim, type and on this level
int Dune::IdentityGridLevelIndexSet< GridImp >::subIndex | ( | const typename GridImp::Traits::template Codim< 0 >::Entity & | e, | |
int | i, | |||
int | codim | |||
) | const [inline] |
get index of subEntity of a codim 0 entity
void Dune::IdentityGridLevelIndexSet< GridImp >::update | ( | const GridImp & | grid, | |
int | level | |||
) | [inline] |
Set up the index set.
GridImp* Dune::IdentityGridLevelIndexSet< GridImp >::grid_ |
Referenced by Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::contains(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::geomTypes(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::index(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::size(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::subIndex(), and Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::update().
int Dune::IdentityGridLevelIndexSet< GridImp >::level_ |
Referenced by Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::contains(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::geomTypes(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::index(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::size(), Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::subIndex(), and Dune::IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >::update().