dune-grid
2.4.1-rc2
|
Implementation of Level- and LeafIndexSets for YaspGrid. More...
#include <dune/grid/yaspgrid.hh>
Public Types | |
typedef Base::IndexType | IndexType |
typedef TypesImp | Types |
iterator range for geometry types in domain More... | |
Public Member Functions | |
YaspIndexSet (const GridImp &g, int l) | |
Level grid view constructor stores reference to a grid and level. More... | |
YaspIndexSet (const GridImp &g) | |
Level grid view constructor stores reference to a grid and level. More... | |
template<int cc> | |
IndexType | index (const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e) const |
get index of an entity More... | |
template<int cc> | |
IndexType | subIndex (const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
get index of subentity of an entity More... | |
int | size (GeometryType type) const |
get number of entities of given type and level (the level is known to the object) More... | |
int | size (int codim) const |
return size of set for a given codim More... | |
template<class EntityType > | |
bool | contains (const EntityType &e) const |
return true if the given entity is contained in ![]() | |
std::vector< GeometryType > | types (int codim) const |
const std::vector< GeometryType > & | geomTypes (int codim) const |
deliver all geometry types used in this grid More... | |
Index access from entity | |
IndexType | index (const typename Traits::template Codim< cc >::Entity &e) const |
Map entity to index. The result of calling this method with an entity that is not in the index set is undefined. More... | |
IndexType | index (const Entity &e) const |
Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined. More... | |
IndexType | subIndex (const typename Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. More... | |
IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. More... | |
Access to entity set | |
bool | contains (const Entity &e) const |
Return true if the given entity is contained in ![]() | |
Static Public Attributes | |
static const int | dimension |
dimension of the grid (maximum allowed codimension) More... | |
Implementation of Level- and LeafIndexSets for YaspGrid.
GridImp | The YaspGrid class we are an index set for |
isLeafIndexSet | false: class functions as level index set, true: class functions as leaf index set |
typedef Base::IndexType Dune::YaspIndexSet< GridImp, isLeafIndexSet >::IndexType |
|
inherited |
iterator range for geometry types in domain
|
inline |
Level grid view constructor stores reference to a grid and level.
|
inline |
Level grid view constructor stores reference to a grid and level.
|
inline |
return true if the given entity is contained in .
|
inlineinherited |
Return true if the given entity is contained in .
References Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp, TypesImp >::contains().
|
inline |
deliver all geometry types used in this grid
|
inline |
get index of an entity
|
inlineinherited |
Map entity to index. The result of calling this method with an entity that is not in the index set is undefined.
e | Reference to codim cc entity, where cc is the template parameter of the function. |
|
inlineinherited |
Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined.
e | Reference to codim cc entity. Since entity knows its codimension, automatic extraction is possible. |
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension.
|
inline |
get number of entities of given type and level (the level is known to the object)
|
inline |
return size of set for a given codim
|
inline |
get index of subentity of an entity
|
inlineinherited |
Map a subentity to an index.
The result of calling this method with an entity that is not in the index set is undefined.
cc | codimension of the entity |
[in] | e | reference to codimension cc entity |
[in] | i | number subentity of e within the codimension |
[in] | codim | codimension of the subentity we're interested in (must satisfy cc <= codim <= dimension) |
|
inlineinherited |
Map a subentity to an index.
The result of calling this method with an entity that is not in the index set is undefined.
Entity | type of entity (must be GridImp::Codim< cc >::Entity for some cc) |
[in] | e | reference to entity |
[in] | i | number subentity of e within the codimension |
[in] | codim | codimension of the subentity we're interested in |
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension.
|
inline |
|
staticinherited |
dimension of the grid (maximum allowed codimension)