Dune::ALU3dGridHierarchicIndexSet< dim, dimworld, elType > Class Template Reference
#include <indexsets.hh>
Inheritance diagram for Dune::ALU3dGridHierarchicIndexSet< dim, dimworld, elType >:

Detailed Description
template<int dim, int dimworld, ALU3dGridElementType elType>
class Dune::ALU3dGridHierarchicIndexSet< dim, dimworld, elType >
hierarchic index set of ALU3dGrid
Public Types | |
typedef int | IndexType |
type of index (in upcomming version this is unsigned int) | |
Public Member Functions | |
template<class EntityType> | |
int | index (const EntityType &ep) const |
return hierarchic index of given entity | |
template<int cd> | |
int | subIndex (const EntityCodim0Type &ep, int i) const |
return subIndex of given entity | |
int | size (GeometryType type) const |
int | size (int codim) const |
return size of indexset, i.e. maxindex+1 | |
const std::vector< GeometryType > & | geomTypes (int codim) const |
deliver all geometry types used in this grid | |
template<int cd, PartitionIteratorType pitype> | |
ALU3dGridHierarchicIteratorTypes< GridType >::template Codim< cd >::template Partition< pitype >::Iterator | end () const |
Iterator to one past the last entity of given codim for partition type. | |
template<int cd, PartitionIteratorType pitype> | |
ALU3dGridHierarchicIteratorTypes< GridType >::template Codim< cd >::template Partition< pitype >::Iterator | begin () const |
Iterator to first entity of given codimension and partition type. | |
template<class EntityType> | |
bool | contains (const EntityType &) const |
return true because all entities are contained in this set | |
int | subIndex (const typename remove_const< ALU3dGrid< dim, dimworld, elType > >::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. Map subentity of codim 0 entity to index. | |
Index access from entity | |
template<int cc> | |
int | 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> | |
int | 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. |
Member Function Documentation
template<int dim, int dimworld, ALU3dGridElementType elType>
int Dune::ALU3dGridHierarchicIndexSet< dim, dimworld, elType >::size | ( | GeometryType | type | ) | const [inline] |
return size of indexset, i.e. maxindex+1 for given type, if type is not exisiting within grid 0 is returned
Reimplemented from Dune::IndexSet< GridImp, IndexSetImp, IndexSetTypes >.
int Dune::IndexSetDefaultImplementation< ALU3dGrid< dim, dimworld, elType > , ALU3dGridHierarchicIndexSet< dim, dimworld, elType > , ALU3dGridHierarchicIteratorTypes< ALU3dGrid< dim, dimworld, elType > > >::subIndex | ( | const typename remove_const< ALU3dGrid< dim, dimworld, elType > >::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. Map subentity of codim 0 entity to index.
- Parameters:
-
e Reference to codim 0 entity. i Number of codim cc subentity of e, where cc is the template parameter of the function.
template<class GridImp, class IndexSetImp, class IndexSetTypes>
template<int cc>
int 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.
- Parameters:
-
e Reference to codim 0 entity. i Number of codim cc subentity of e, where cc is the template parameter of the function.
- Returns:
- An index in the range 0 ... Max number of entities in set - 1.
template<class GridImp, class IndexSetImp, class IndexSetTypes>
template<int cc>
int 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.
- Parameters:
-
e Reference to codim cc entity, where cc is the template parameter of the function.
- Returns:
- An index in the range 0 ... Max number of entities in set - 1.
The documentation for this class was generated from the following file: