- Home
- About DUNE
- Download
- Documentation
- Community
- Development
Default LeafIndexSet. More...
#include <dune/grid/alugrid/common/defaultindexsets.hh>
Classes | |
struct | InsertEntity |
struct | InsertEntity< EntityType, 0 > |
Public Types | |
enum | { ncodim = dim + 1 } |
typedef GridType::HierarchicIndexSet | HierarchicIndexSetType |
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 | index (const typename GridImp::template Codim< cd >::Entity &en) const |
template<int cc> | |
IndexType | subIndex (const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
template<class EntityType > | |
bool | contains (const EntityType &en) const |
returns true if this set provides an index for given entity | |
IndexType | size (int codim) const |
return size of IndexSet for a given codim | |
IndexType | 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. | |
Index access from entity | |
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. | |
IndexType | subIndex (const typename Traits::template Codim< cc >::Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. | |
IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. | |
Static Public Attributes | |
static const int | dimension |
dimension of the grid (maximum allowed codimension) |
Default LeafIndexSet.
typedef GridType :: HierarchicIndexSet Dune::DefaultLeafIndexSet< GridImp >::HierarchicIndexSetType |
typedef unsigned int Dune::DefaultLeafIndexSet< GridImp >::IndexType |
type of index
Reimplemented from Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp >, unsigned int >.
Dune::DefaultLeafIndexSet< GridImp >::DefaultLeafIndexSet | ( | const GridType & | grid | ) | [inline] |
create LevelIndex by using the HierarchicIndexSet of a grid for the given level
DefaultLeafIteratorTypes<GridImp>::template Codim<cd>:: template Partition<pitype>::Iterator Dune::DefaultLeafIndexSet< GridImp >::begin | ( | ) | const [inline] |
Iterator to first entity of given codimension and partition type.
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
bool Dune::DefaultLeafIndexSet< GridImp >::contains | ( | const EntityType & | en | ) | const [inline] |
returns true if this set provides an index for given entity
Reimplemented from Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp >, unsigned int >.
DefaultLeafIteratorTypes<GridImp>::template Codim<cd>:: template Partition<pitype>::Iterator Dune::DefaultLeafIndexSet< GridImp >::end | ( | ) | const [inline] |
Iterator to one past the last entity of given codim for partition type.
const std::vector<GeometryType>& Dune::DefaultLeafIndexSet< GridImp >::geomTypes | ( | int | codim | ) | const [inline] |
deliver all geometry types used in this grid
Reimplemented from Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp >, unsigned int >.
IndexType Dune::DefaultLeafIndexSet< GridImp >::index | ( | const typename GridImp::template Codim< cd >::Entity & | en | ) | const [inline] |
IndexType Dune::DefaultLeafIndexSet< GridImp >::index | ( | const EntityType & | en | ) | const [inline] |
return LeafIndex of given entity
Reimplemented from Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp >, unsigned int >.
IndexType Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp > , unsigned int >::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::DefaultLeafIndexSet< GridImp >::size | ( | int | codim | ) | const [inline] |
return size of IndexSet for a given codim
Reimplemented from Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp >, unsigned int >.
IndexType 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, DefaultLeafIndexSet< GridImp >, unsigned int >.
IndexType Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp > , unsigned int >::subIndex | ( | const typename Traits::template Codim< cc >::Entity & | e, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline, inherited] |
Map a subentity to an index.
The result of calling this method with an entity that is not in the index set is undefined.
cc | codimension of the entity |
[in] | e | reference to codimsion cc entity |
[in] | i | number subentity of e within the codimension |
[in] | codim | codimension of the subentity we're interested in (must satisfy cc <= codim <= dimension) |
IndexType Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp > , unsigned int >::subIndex | ( | const Entity & | e, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline, inherited] |
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 |
IndexType Dune::DefaultLeafIndexSet< GridImp >::subIndex | ( | const typename remove_const< GridImp >::type::Traits::template Codim< cc >::Entity & | e, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline] |
return subIndex (LevelIndex) for a given Entity of codim = 0 and a given SubEntity codim and number of SubEntity
const int Dune::IndexSet< GridImp, DefaultLeafIndexSet< GridImp > , unsigned int >::dimension [static, inherited] |
dimension of the grid (maximum allowed codimension)
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].