|
dune-grid
2.11
|
Implementation of Level- and LeafIndexSets for YaspGrid. More...
#include <dune/grid/yaspgrid.hh>

Public Types | |
| typedef Base::IndexType | IndexType |
| typedef std::array< GeometryType, 1 > | 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 std::remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e) const |
| get index of an entity More... | |
| template<int cc> | |
| IndexType | subIndex (const typename std::remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
| get index of subentity of an entity More... | |
| std::size_t | size (GeometryType type) const |
| get number of entities of given type and level (the level is known to the object) More... | |
| std::size_t | 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 . More... | |
| template<int cc> | |
| IndexType | subIndex (const typename Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
| Map a subentity to an index. More... | |
| template<class Entity > | |
| IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
| Map a subentity to an index. 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 | |
| Types | types (int codim) const |
| obtain all geometry types of entities in domain More... | |
| bool | contains (const Entity &e) const |
Return true if the given entity is contained in . More... | |
Static Public Member Functions | |
| static constexpr std::array< GeometryType, 1 > | types (int codim) |
| obtain all geometry types of entities in domain More... | |
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
.
|
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. |
|
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 |
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 |
codim denotes the codimension with respect to the grid, i.e., it must satisfy cc <= codim <= dimension.
|
inline |
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 |
codim denotes the codimension with respect to the grid, i.e., it must satisfy cc <= codim <= dimension.
|
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 |
codim denotes the codimension with respect to the grid, i.e., it 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 |
codim denotes the codimension with respect to the grid, i.e., it must satisfy cc <= codim <= dimension.
|
inlinestatic |
obtain all geometry types of entities in domain
|
inlineinherited |
obtain all geometry types of entities in domain
This method returns an iterator range (something that behaves like Dune::IteratorRange) visiting all geometry types of codimension codim in the domain of the index map exactly once. The iterator must implement the concept of a forward iterator (in the sense of the STL). The elements in the iterator range are required to be of type Dune::GeometryType.
| [in] | codim | a valid codimension |
|
staticinherited |
dimension of the grid (maximum allowed codimension)
1.8.14