#include <defaultindexsets.hh>
Public Types | |
typedef unsigned int | IndexType |
type of index | |
Public Member Functions | |
DefaultLeafIndexSet (const GridType &grid) | |
template<class EntityType> | |
IndexType | index (const EntityType &en) const |
return LeafIndex of given entity | |
template<int cd> | |
IndexType | subIndex (const typename GridType::template Codim< 0 >::Entity &en, int i) const |
template<class EntityType> | |
bool | contains (const EntityType &en) const |
returns true if this set provides an index for given entity | |
int | size (int codim) const |
return size of IndexSet for a given codim | |
int | size (GeometryType type) const |
void | calcNewIndex () |
const std::vector< GeometryType > & | geomTypes (int codim) const |
deliver all geometry types used in this grid | |
template<int cd, PartitionIteratorType pitype> | |
DefaultLeafIteratorTypes < GridImp >::template Codim < cd >::template Partition < pitype >::Iterator | begin () const |
Iterator to first entity of given codimension and partition type. | |
template<int cd, PartitionIteratorType pitype> | |
DefaultLeafIteratorTypes < GridImp >::template Codim < cd >::template Partition < pitype >::Iterator | end () const |
Iterator to one past the last entity of given codim for partition type. | |
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. | |
Index access from entity | |
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. | |
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. |
Dune::DefaultLeafIndexSet< GridImp >::DefaultLeafIndexSet | ( | const GridType & | grid | ) | [inline] |
create LevelIndex by using the HierarchicIndexSet of a grid for the given level
IndexType Dune::DefaultLeafIndexSet< GridImp >::subIndex | ( | const typename GridType::template Codim< 0 >::Entity & | en, | |
int | i | |||
) | const [inline] |
return subIndex (LevelIndex) for a given Entity of codim = 0 and a given SubEntity codim and number of SubEntity
int Dune::DefaultLeafIndexSet< GridImp >::size | ( | GeometryType | type | ) | const [inline] |
return size of IndexSet for a codim this method is to be revised
Reimplemented from Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >.
References Dune::Grid< dim, dimworld, ct, GridFamily >::dimension.
void Dune::DefaultLeafIndexSet< GridImp >::calcNewIndex | ( | ) | [inline] |
do calculation of the index set, has to be called when grid was changed or if index set is created
IndexType Dune::IndexSetDefaultImplementation< GridImp, IndexSetImp, IndexSetTypes >::subIndex | ( | const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity & | e, | |
int | i | |||
) | const [inline, inherited] |
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::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 > >.
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. |