#include <indexidset.hh>
Public Types | |
typedef IndexSet< GridImp, IndexSetImp, IndexSetTypes > ::IndexType | IndexType |
The type used for the indices. | |
Public Member Functions | |
template<int cc> | |
IndexType | subIndex (const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i) const |
Return total number of entities of given codim as a sum for all geometry types in this index set. | |
IndexType | size (int codim) const |
Return total number of entities of given codim in the entity set ![]() | |
template<class EntityType> | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in ![]() | |
Index access from entity | |
template<int cc> | |
IndexType | index (const typename remove_const< GridImp >::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. | |
template<class EntityType> | |
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. | |
template<int cc> | |
IndexType | subIndex (const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i) const |
Map subentity of codim cc of codim 0 entity to index. The result of calling this method with an entity that is not in the index set is undefined. | |
Access to 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 ![]() | |
IndexType | size (GeometryType type) const |
Return total number of entities of given geometry type in entity set ![]() | |
Classes | |
struct | Codim |
Define types needed to iterate over the entities in the index set. More... |
IndexType Dune::IndexSetDefaultImplementation< GridImp, IndexSetImp, IndexSetTypes >::subIndex | ( | const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity & | e, | |
int | i | |||
) | const [inline] |
Return total number of entities of given codim as a sum for all geometry types in this index set.
codim | A valid codimension Map subentity of codim 0 entity to index. | |
e | Reference to codim 0 entity. | |
i | Number of codim cc subentity of e, where cc is the template parameter of the function. |
IndexType Dune::IndexSetDefaultImplementation< GridImp, IndexSetImp, IndexSetTypes >::size | ( | int | codim | ) | const [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< GridImp, IndexSetImp, IndexSetTypes >.
Reimplemented in Dune::DefaultLevelIndexSet< GridImp >, and Dune::DefaultLeafIndexSet< GridImp >.
IndexType Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >::index | ( | const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity & | e | ) | const [inline, inherited] |
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. |
IndexType Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >::index | ( | const EntityType & | e | ) | const [inline, inherited] |
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. |
Reimplemented in Dune::DefaultLevelIndexSet< GridImp >, and Dune::DefaultLeafIndexSet< GridImp >.
IndexType Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >::subIndex | ( | const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity & | e, | |
int | i | |||
) | const [inline, inherited] |
Map subentity of codim cc of codim 0 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 0 entity. | |
i | Number of codim cc subentity of e, where cc is the template parameter of the function. |
Reimplemented in Dune::IndexSetDefaultImplementation< GridImp, Dune::DefaultLeafIndexSet< GridImp >, Dune::DefaultLeafIteratorTypes< GridImp > >, Dune::IndexSetDefaultImplementation< GridImp, Dune::YaspLeafIndexSet< GridImp >, Dune::YaspLeafIndexSetTypes< GridImp > >, Dune::IndexSetDefaultImplementation< GridImp, Dune::YaspLevelIndexSet< GridImp >, Dune::YaspLevelIndexSetTypes< GridImp > >, Dune::IndexSetDefaultImplementation< GridImp, Dune::SGridLevelIndexSet< GridImp >, Dune::SGridLevelIndexSetTypes< GridImp > >, Dune::IndexSetDefaultImplementation< GridImp, Dune::DefaultLevelIndexSet< GridImp >, Dune::DefaultLevelIteratorTypes< GridImp > >, and Dune::IndexSetDefaultImplementation< GridImp, Dune::SGridLeafIndexSet< GridImp >, Dune::SGridLeafIndexSetTypes< GridImp > >.
const std::vector<GeometryType>& Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >::geomTypes | ( | int | codim | ) | const [inline, inherited] |
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 in Dune::DefaultLevelIndexSet< GridImp >, and Dune::DefaultLeafIndexSet< GridImp >.
Referenced by Dune::IndexSet< GridImp, Dune::SGridLeafIndexSet< GridImp >, Dune::SGridLeafIndexSetTypes< GridImp > >::geomTypes().
IndexType Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >::size | ( | GeometryType | type | ) | const [inline, inherited] |
Return total number of entities of given geometry type in entity set .
[in] | type | A valid geometry type. |
Reimplemented in Dune::DefaultLevelIndexSet< GridImp >, and Dune::DefaultLeafIndexSet< GridImp >.
Referenced by Dune::IndexSet< GridImp, Dune::SGridLeafIndexSet< GridImp >, Dune::SGridLeafIndexSetTypes< GridImp > >::size().