#include <dune/grid/albertagrid/indexsets.hh >
template<class Entity >
bool contains (const Entity &) const
return true if entity is contained in set
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
std::size_t size (const GeometryType &type) const
return size of set for given GeometryType
std::size_t size (int codim) const
return size of set
Types types (int codim) const
obtain all geometry types of entities in domain
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
void preAdapt ()
void postAdapt ()
void create ()
void read (const std::string &filename)
bool write (const std::string &filename) const
void release ()
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.
IndexType subIndex (const Entity &e, int i, unsigned int codim) const
Map a subentity to an index.
auto size (GeometryType type) const
Return total number of entities of given geometry type in entity set .
static const int dimension = GridFamily::dimension
◆ DofNumbering
template<int dim, int dimworld>
◆ ElementInfo
template<int dim, int dimworld>
◆ Grid
template<int dim, int dimworld>
◆ GridFamily
template<int dim, int dimworld>
◆ IndexStack
template<int dim, int dimworld>
◆ IndexType
template<int dim, int dimworld>
◆ Types
template<int dim, int dimworld>
◆ contains()
template<int dim, int dimworld>
return true if entity is contained in set
◆ create()
template<int dim, int dimworld>
◆ index() [1/2]
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.
Parameters
e Reference to codim cc entity. Since entity knows its codimension, automatic extraction is possible.
Returns An index in the range 0 ... Max number of entities in set - 1.
◆ index() [2/2]
template<int dim, int dimworld>
template<int cc>
return hierarchic index of given entity
◆ postAdapt()
template<int dim, int dimworld>
◆ preAdapt()
template<int dim, int dimworld>
◆ read()
template<int dim, int dimworld>
◆ release()
template<int dim, int dimworld>
◆ size() [1/3]
template<int dim, int dimworld>
return size of set for given GeometryType
◆ size() [2/3]
Return total number of entities of given geometry type in entity set .
Parameters
[in] type A valid geometry type.
Returns number of entities (type is auto determined by the implementation. std::size_t is the expected return type).
◆ size() [3/3]
template<int dim, int dimworld>
◆ subIndex() [1/4]
template<int dim, int dimworld>
obtain hierarchic subindex
Parameters
[in] element pointer to ALBERTA element
[in] i number of the subelement (in ALBERTA numbering)
[in] codim codimension
◆ subIndex() [2/4]
template<int dim, int dimworld>
◆ subIndex() [3/4]
Map a subentity to an index.
The result of calling this method with an entity that is not in the index set is undefined.
Note This method exists for convenience only. It extracts the codimension from the type of the entity, which can be guessed by the compiler.
Template Parameters
Entity type of entity (must be GridImp::Codim< cc >::Entity for some cc)
Parameters
[in] e reference to entity
[in] i number subentity of e within the codimension
[in] codim codimension of the subentity we're interested in
Note The parameter codim
denotes the codimension with respect to the grid, i.e., it must satisfy cc <= codim <= dimension.
Returns An index in the range 0 ... Max number of entities in set - 1.
◆ subIndex() [4/4]
template<int dim, int dimworld>
template<int cc>
return subIndex of given enitiy's sub entity
◆ types()
template<int dim, int dimworld>
obtain all geometry types of entities in domain
◆ write()
template<int dim, int dimworld>
◆ dimension
template<int dim, int dimworld>
The documentation for this class was generated from the following files: