- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#include <dune/grid/albertagrid/indexsets.hh>
Classes | |
struct | CoarsenNumbering |
struct | CreateEntityNumbers |
class | InitEntityNumber |
struct | RefineNumbering |
Public Types | |
typedef AlbertaGrid< dim, dimworld > | Grid |
typedef AlbertaGridFamily< dim, dimworld > | GridFamily |
typedef Base::IndexType | IndexType |
The type used for the indices. | |
typedef Alberta::ElementInfo < dimension > | ElementInfo |
typedef Alberta::HierarchyDofNumbering < dimension > | DofNumbering |
typedef Alberta::IndexStack | IndexStack |
Public Member Functions | |
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 | |
IndexType | size (const GeometryType &type) const |
return size of set for given GeometryType | |
IndexType | size (int codim) const |
return size of set | |
const std::vector< GeometryType > & | geomTypes (int codim) const |
return geometry types this set has indices for | |
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 () |
Index access from entity | |
IndexType | index (const typename remove_const< AlbertaGridFamily< dim, dimworld > >::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 | 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. | |
IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. | |
Access to entity set | |
IndexType | size (GeometryType type) const |
Return total number of entities of given geometry type in entity set ![]() | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in ![]() | |
Static Public Attributes | |
static const int | dimension = GridFamily::dimension |
dimension of the grid (maximum allowed codimension) | |
Friends | |
class | AlbertaGrid< dim, dimworld > |
typedef Alberta::HierarchyDofNumbering< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::DofNumbering |
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::ElementInfo |
typedef AlbertaGrid< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Grid |
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::GridFamily |
typedef Alberta::IndexStack Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexStack |
typedef Base::IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexType |
The type used for the indices.
Reimplemented from Dune::IndexSet< AlbertaGridFamily< dim, dimworld >, AlbertaGridHierarchicIndexSet< dim, dimworld >, int >.
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::contains | ( | const Entity & | ) | const [inline] |
return true if entity is contained in set
bool Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int >::contains | ( | const EntityType & | e | ) | const [inline, inherited] |
Return true if the given entity is contained in .
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::create | ( | ) |
const std::vector< GeometryType >& Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::geomTypes | ( | int | codim | ) | const [inline] |
return geometry types this set has indices for
Reimplemented from Dune::IndexSet< AlbertaGridFamily< dim, dimworld >, AlbertaGridHierarchicIndexSet< dim, dimworld >, int >.
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension.
IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int >::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. |
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::index | ( | const typename Traits::template Codim< cc >::Entity & | entity | ) | const [inline] |
return hierarchic index of given entity
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
Referenced by Dune::AlbertaGridIdSet< dim, dimworld >::id().
IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int >::index | ( | const typename remove_const< AlbertaGridFamily< dim, dimworld > >::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. |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::postAdapt | ( | ) | [inline] |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::preAdapt | ( | ) | [inline] |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::read | ( | const std::string & | filename | ) |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::release | ( | ) | [inline] |
IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int >::size | ( | GeometryType | type | ) | const [inline, inherited] |
Return total number of entities of given geometry type in entity set .
[in] | type | A valid geometry type. |
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size | ( | const GeometryType & | type | ) | const [inline] |
return size of set for given GeometryType
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension.
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size | ( | int | codim | ) | const [inline] |
return size of set
Reimplemented from Dune::IndexSet< AlbertaGridFamily< dim, dimworld >, AlbertaGridHierarchicIndexSet< dim, dimworld >, int >.
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension, and Dune::IndexStack< T, length >::size().
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex | ( | const ElementInfo & | elementInfo, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline] |
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex | ( | const Alberta::Element * | element, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline] |
obtain hierarchic subindex
[in] | element | pointer to ALBERTA element |
[in] | i | number of the subelement (in ALBERTA numbering) |
[in] | codim | codimension |
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex | ( | const typename Traits::template Codim< cc >::Entity & | entity, | |
int | i, | |||
unsigned int | codim | |||
) | const [inline] |
return subIndex of given enitiy's sub entity
Reimplemented from Dune::IndexSet< AlbertaGridFamily< dim, dimworld >, AlbertaGridHierarchicIndexSet< dim, dimworld >, int >.
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::GenericReferenceElement< ctype, dim >::subEntity().
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::index(), Dune::AlbertaGridIdSet< dim, dimworld >::subId(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , 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 |
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::write | ( | const std::string & | filename | ) | const |
friend class AlbertaGrid< dim, dimworld > [friend] |
const int Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension = GridFamily::dimension [static] |
dimension of the grid (maximum allowed codimension)
Reimplemented from Dune::IndexSet< AlbertaGridFamily< dim, dimworld >, AlbertaGridHierarchicIndexSet< dim, dimworld >, int >.
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::geomTypes(), Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::release(), Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::write().
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].