dune-grid  2.4.1
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::AlbertaGridHierarchicIndexSet< dim, dimworld > Class Template Reference

#include <dune/grid/albertagrid/gridfamily.hh>

Inheritance diagram for Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >:
Inheritance graph

Classes

class  InitEntityNumber
 

Public Types

typedef AlbertaGrid< dim, dimworld > Grid
 
typedef AlbertaGridFamily< dim, dimworld > GridFamily
 
typedef Base::IndexType IndexType
 
typedef Base::Types Types
 
typedef Alberta::ElementInfo< dimensionElementInfo
 
typedef Alberta::HierarchyDofNumbering< dimensionDofNumbering
 
typedef Alberta::IndexStack IndexStack
 

Public Member Functions

template<class Entity >
bool contains (const Entity &) const
 return true if entity is contained in set More...
 
template<int cc>
IndexType index (const typename Traits::template Codim< cc >::Entity &entity) const
 return hierarchic index of given entity More...
 
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 More...
 
IndexType size (const GeometryType &type) const
 return size of set for given GeometryType More...
 
IndexType size (int codim) const
 return size of set More...
 
Types types (int codim) const
 
const std::vector< GeometryType > & geomTypes (int codim) const
 return geometry types this set has indices for More...
 
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 More...
 
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 Entity &e) const
 Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined. More...
 
IndexType subIndex (const Entity &e, int i, unsigned int codim) const
 Map a subentity to an index. More...
 
Access to entity set
IndexType size (GeometryType type) const
 Return total number of entities of given geometry type in entity set $E$. More...
 

Static Public Attributes

static const int dimension = GridFamily::dimension
 

Member Typedef Documentation

template<int dim, int dimworld>
typedef Alberta::HierarchyDofNumbering< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::DofNumbering
template<int dim, int dimworld>
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::ElementInfo
template<int dim, int dimworld>
typedef AlbertaGrid< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Grid
template<int dim, int dimworld>
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::GridFamily
template<int dim, int dimworld>
typedef Alberta::IndexStack Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexStack
template<int dim, int dimworld>
typedef Base::IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexType
template<int dim, int dimworld>
typedef Base::Types Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Types

Member Function Documentation

template<int dim, int dimworld>
template<class Entity >
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::contains ( const Entity ) const
inline

return true if entity is contained in set

template<int dim, int dimworld>
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::create ( )
template<int dim, int dimworld>
const std::vector< GeometryType >& Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::geomTypes ( int  codim) const
inline

return geometry types this set has indices for

template<int dim, int dimworld>
template<int cc>
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::index ( const typename Traits::template Codim< cc >::Entity entity) const
inline

return hierarchic index of given entity

IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int , std::array< GeometryType, 1 > >::index ( const Entity e) const
inlineinherited

Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined.

Parameters
eReference to codim cc entity. Since entity knows its codimension, automatic extraction is possible.
Returns
An index in the range 0 ... Max number of entities in set - 1.
template<int dim, int dimworld>
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::postAdapt ( )
inline
template<int dim, int dimworld>
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::preAdapt ( )
inline
template<int dim, int dimworld>
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::read ( const std::string &  filename)
template<int dim, int dimworld>
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::release ( )
inline
template<int dim, int dimworld>
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size ( const GeometryType &  type) const
inline

return size of set for given GeometryType

template<int dim, int dimworld>
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size ( int  codim) const
inline

return size of set

IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int , std::array< GeometryType, 1 > >::size ( GeometryType  type) const
inlineinherited

Return total number of entities of given geometry type in entity set $E$.

Parameters
[in]typeA valid geometry type.
Returns
number of entities.
template<int dim, int dimworld>
template<int cc>
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

References Dune::simplex.

template<int dim, int dimworld>
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex ( const ElementInfo elementInfo,
int  i,
unsigned int  codim 
) const
inline
template<int dim, int dimworld>
IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex ( const Alberta::Element element,
int  i,
unsigned int  codim 
) const
inline

obtain hierarchic subindex

Parameters
[in]elementpointer to ALBERTA element
[in]inumber of the subelement (in ALBERTA numbering)
[in]codimcodimension
IndexType Dune::IndexSet< AlbertaGridFamily< dim, dimworld > , AlbertaGridHierarchicIndexSet< dim, dimworld > , int , std::array< GeometryType, 1 > >::subIndex ( const Entity e,
int  i,
unsigned int  codim 
) const
inlineinherited

Map a subentity to an index.

The result of calling this method with an entity that is not in the index set is undefined.

Note
This method exists for convenience only. It extracts the codimension from the type of the entity, which can be guessed by the compiler.
Template Parameters
Entitytype of entity (must be GridImp::Codim< cc >::Entity for some cc)
Parameters
[in]ereference to entity
[in]inumber subentity of e within the codimension
[in]codimcodimension of the subentity we're interested in
Returns
An index in the range 0 ... Max number of entities in set - 1.
template<int dim, int dimworld>
Types Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::types ( int  codim) const
inline

References Dune::simplex.

template<int dim, int dimworld>
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::write ( const std::string &  filename) const

Member Data Documentation

template<int dim, int dimworld>
const int Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension = GridFamily::dimension
static

The documentation for this class was generated from the following files: