dune-grid
2.2.0
|
#include <dune/grid/albertagrid/indexsets.hh>
Classes | |
struct | Insert |
Public Types | |
typedef AlbertaGrid< dim, dimworld > | Grid |
typedef Base::IndexType | IndexType |
The type used for the indices. | |
typedef Alberta::ElementInfo < dimension > | ElementInfo |
typedef Alberta::HierarchyDofNumbering < dimension > | DofNumbering |
Public Member Functions | |
AlbertaGridIndexSet (const DofNumbering &dofNumbering) | |
~AlbertaGridIndexSet () | |
template<class Entity > | |
bool | contains (const Entity &entity) const |
template<int cc> | |
IndexType | index (const typename Traits::template Codim< cc >::Entity &entity) const |
return hierarchic index of given entity | |
template<int cc> | |
IndexType | subIndex (const typename Traits::template Codim< cc >::Entity &entity, int i, unsigned int codim) const |
return subIndex of given enitiy's sub entity | |
IndexType | size (const GeometryType &type) const |
IndexType | size (int codim) const |
Return total number of entities of given codim in the entity set ![]() | |
const std::vector< GeometryType > & | geomTypes (int codim) const |
Return vector with all geometry types of entities in domain of index map. Return a vector with all geometry types of a given codimension contained in the Entity set ![]() | |
template<class Iterator > | |
void | update (const Iterator &begin, const Iterator &end) |
Index access from entity | |
IndexType | index (const typename remove_const< AlbertaGrid< dim, dimworld > >::type::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. | |
IndexType | index (const EntityType &e) const |
Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitely. The result of calling this method with an entity that is not in the index set is undefined. | |
IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. | |
Access to entity set | |
IndexType | size (GeometryType type) const |
Return total number of entities of given geometry type in entity set ![]() | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in ![]() |
Static Public Attributes | |
static const int | dimension = Grid::dimension |
dimension of the grid (maximum allowed codimension) |
typedef Alberta::HierarchyDofNumbering< dimension > Dune::AlbertaGridIndexSet< dim, dimworld >::DofNumbering |
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridIndexSet< dim, dimworld >::ElementInfo |
typedef AlbertaGrid< dim, dimworld > Dune::AlbertaGridIndexSet< dim, dimworld >::Grid |
typedef Base::IndexType Dune::AlbertaGridIndexSet< dim, dimworld >::IndexType |
The type used for the indices.
Reimplemented from Dune::IndexSet< AlbertaGrid< dim, dimworld >, AlbertaGridIndexSet< dim, dimworld >, int >.
|
inlineexplicit |
References Dune::AlbertaGridIndexSet< dim, dimworld >::dimension, and Dune::simplex.
|
inline |
|
inlineinherited |
Return true if the given entity is contained in .
|
inline |
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, Dune::Alberta::ElementInfo< dim >::el(), Dune::AlbertaGridEntity< codim, dim, GridImp >::elementInfo(), Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), Dune::AlbertaGridEntity< codim, dim, GridImp >::subEntity(), and Dune::AlbertaGridIndexSet< dim, dimworld >::subIndex().
|
inline |
Return vector with all geometry types of entities in domain of index map. Return a vector with all geometry types of a given codimension contained in the Entity set .
[in] | codim | A valid codimension. |
Reimplemented from Dune::IndexSet< AlbertaGrid< dim, dimworld >, AlbertaGridIndexSet< dim, dimworld >, int >.
References Dune::AlbertaGridIndexSet< dim, dimworld >::dimension.
|
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 explicitely. 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 |
return hierarchic index of given entity
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::AlbertaGridIndexSet< dim, dimworld >::subIndex().
Referenced by Dune::AlbertaGridIndexSet< dim, dimworld >::Insert< codim >::apply().
|
inlineinherited |
Return total number of entities of given geometry type in entity set .
[in] | type | A valid geometry type. |
|
inline |
|
inline |
Return total number of entities of given codim in the entity set . This is simply a sum over all geometry types.
[in] | codim | A valid codimension |
Reimplemented from Dune::IndexSet< AlbertaGrid< dim, dimworld >, AlbertaGridIndexSet< dim, dimworld >, int >.
References Dune::AlbertaGridIndexSet< dim, dimworld >::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 |
|
inline |
return subIndex of given enitiy's sub entity
Reimplemented from Dune::IndexSet< AlbertaGrid< dim, dimworld >, AlbertaGridIndexSet< dim, dimworld >, int >.
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::simplex.
Referenced by Dune::AlbertaGridIndexSet< dim, dimworld >::contains(), and Dune::AlbertaGridIndexSet< dim, dimworld >::index().
|
inline |
References Dune::AlbertaGridIndexSet< dim, dimworld >::dimension, Dune::Alberta::ElementInfo< dim >::el(), Dune::AlbertaGridEntity< codim, dim, GridImp >::elementInfo(), Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::Alberta::HierarchyDofNumbering< dim >::size().
|
static |
dimension of the grid (maximum allowed codimension)
Reimplemented from Dune::IndexSet< AlbertaGrid< dim, dimworld >, AlbertaGridIndexSet< dim, dimworld >, int >.
Referenced by Dune::AlbertaGridIndexSet< dim, dimworld >::AlbertaGridIndexSet(), Dune::AlbertaGridIndexSet< dim, dimworld >::geomTypes(), Dune::AlbertaGridIndexSet< dim, dimworld >::size(), Dune::AlbertaGridIndexSet< dim, dimworld >::update(), and Dune::AlbertaGridIndexSet< dim, dimworld >::~AlbertaGridIndexSet().