dune-grid 2.9.0
|
#include <dune/grid/albertagrid/indexsets.hh>
Classes | |
class | InitEntityNumber |
Public Types | |
typedef AlbertaGrid< dim, dimworld > | Grid |
typedef AlbertaGridFamily< dim, dimworld > | GridFamily |
typedef Base::IndexType | IndexType |
typedef Base::Types | Types |
typedef Alberta::ElementInfo< dimension > | ElementInfo |
typedef Alberta::HierarchyDofNumbering< dimension > | DofNumbering |
typedef Alberta::IndexStack | IndexStack |
Public Member Functions | |
template<class Entity > | |
bool | contains (const Entity &) const |
return true if entity is contained in set More... | |
template<int cc> | |
IndexType | index (const typename Traits::template Codim< cc >::Entity &entity) const |
return hierarchic index of given entity More... | |
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 More... | |
std::size_t | size (const GeometryType &type) const |
return size of set for given GeometryType More... | |
std::size_t | size (int codim) const |
return size of set More... | |
Types | types (int codim) const |
const std::vector< GeometryType > & | geomTypes (int codim) const |
return geometry types this set has indices for More... | |
IndexType | subIndex (const ElementInfo &elementInfo, int i, unsigned int codim) const |
IndexType | subIndex (const Alberta::Element *element, int i, unsigned int codim) const |
obtain hierarchic subindex More... | |
void | preAdapt () |
void | postAdapt () |
void | create () |
void | read (const std::string &filename) |
bool | write (const std::string &filename) const |
void | release () |
Index access from entity | |
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 Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. More... | |
Access to entity set | |
auto | size (GeometryType type) const |
Return total number of entities of given geometry type in entity set . More... | |
Static Public Attributes | |
static const int | dimension = GridFamily::dimension |
typedef Alberta::HierarchyDofNumbering< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::DofNumbering |
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::ElementInfo |
typedef AlbertaGrid< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Grid |
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::GridFamily |
typedef Alberta::IndexStack Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexStack |
typedef Base::IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexType |
typedef Base::Types Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Types |
|
inline |
return true if entity is contained in set
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::create |
|
inline |
return geometry types this set has indices for
|
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 |
return hierarchic index of given entity
|
inline |
|
inline |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::read | ( | const std::string & | filename | ) |
|
inline |
|
inline |
return size of set for given GeometryType
|
inlineinherited |
Return total number of entities of given geometry type in entity set .
[in] | type | A valid geometry type. |
|
inline |
return size of set
|
inline |
obtain hierarchic subindex
[in] | element | pointer to ALBERTA element |
[in] | i | number of the subelement (in ALBERTA numbering) |
[in] | codim | codimension |
|
inline |
|
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.
|
inline |
return subIndex of given enitiy's sub entity
|
inline |
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::write | ( | const std::string & | filename | ) | const |
|
static |