KASKADE 7 development version
Classes | Public Types | Public Member Functions | List of all members
HierarchicIndexSet< Grid > Class Template Reference

#include <mgtools.hh>

Detailed Description

template<class Grid>
class HierarchicIndexSet< Grid >

TODO: THIS CLASS IS NOT NEEDED ANYMORE! Class providing an index set containing the whole grid hierarchy, i.e. every entity on every grid level has a unique index. By default, the index set is connected to the grid signals, and updates on grid refinement.

Definition at line 143 of file mgtools.hh.

Classes

struct  Codim
 

Public Types

typedef int IndexType
 
typedef HierarchicIndexSet< Grid > Self
 

Public Member Functions

 HierarchicIndexSet (GridManager< Grid > &gridMan_, bool connectMe_=true)
 
 HierarchicIndexSet (GridManager< Grid > &gridMan_, int maxlevel_, bool connectMe_=true)
 
 HierarchicIndexSet (const HierarchicIndexSet &other)
 
HierarchicIndexSetoperator= (const HierarchicIndexSet &other)
 
 ~HierarchicIndexSet ()
 
void init ()
 
void update (int maxlevel_)
 update hierarchic index set, e.g. after grid change More...
 
void update ()
 
template<int cc>
int index (const typename Grid::Traits::template Codim< cc >::Entity &e) const
 
template<class EntityType >
int index (const EntityType &e) const
 
template<int cc>
int subIndex (const typename Grid::Traits::template Codim< 0 >::Entity &e, int i) const
 
const std::vector< Dune::GeometryType > & geomTypes (int codim) const
 
int size (Dune::GeometryType type) const
 
int size (int codim) const
 
template<class EntityType >
bool contains (const EntityType &e) const
 
template<int cd, Dune::PartitionIteratorType pitype>
Codim< cd >::template Partition< pitype >::Iterator begin () const
 
template<int cd, Dune::PartitionIteratorType pitype>
Codim< cd >::template Partition< pitype >::Iterator end () const
 
void out (std::ostream &o) const
 

Member Typedef Documentation

◆ IndexType

template<class Grid >
typedef int HierarchicIndexSet< Grid >::IndexType

Definition at line 163 of file mgtools.hh.

◆ Self

template<class Grid >
typedef HierarchicIndexSet<Grid> HierarchicIndexSet< Grid >::Self

Definition at line 164 of file mgtools.hh.

Constructor & Destructor Documentation

◆ HierarchicIndexSet() [1/3]

template<class Grid >
HierarchicIndexSet< Grid >::HierarchicIndexSet ( GridManager< Grid > &  gridMan_,
bool  connectMe_ = true 
)
inline

Definition at line 166 of file mgtools.hh.

◆ HierarchicIndexSet() [2/3]

template<class Grid >
HierarchicIndexSet< Grid >::HierarchicIndexSet ( GridManager< Grid > &  gridMan_,
int  maxlevel_,
bool  connectMe_ = true 
)
inline

Definition at line 174 of file mgtools.hh.

◆ HierarchicIndexSet() [3/3]

template<class Grid >
HierarchicIndexSet< Grid >::HierarchicIndexSet ( const HierarchicIndexSet< Grid > &  other)
inline

Definition at line 182 of file mgtools.hh.

◆ ~HierarchicIndexSet()

template<class Grid >
HierarchicIndexSet< Grid >::~HierarchicIndexSet ( )
inline

Definition at line 201 of file mgtools.hh.

Member Function Documentation

◆ begin()

template<class Grid >
template<int cd, Dune::PartitionIteratorType pitype>
Codim< cd >::template Partition< pitype >::Iterator HierarchicIndexSet< Grid >::begin ( ) const
inline

Definition at line 359 of file mgtools.hh.

◆ contains()

template<class Grid >
template<class EntityType >
bool HierarchicIndexSet< Grid >::contains ( const EntityType &  e) const
inline

Definition at line 346 of file mgtools.hh.

◆ end()

template<class Grid >
template<int cd, Dune::PartitionIteratorType pitype>
Codim< cd >::template Partition< pitype >::Iterator HierarchicIndexSet< Grid >::end ( ) const
inline

Definition at line 365 of file mgtools.hh.

◆ geomTypes()

template<class Grid >
const std::vector< Dune::GeometryType > & HierarchicIndexSet< Grid >::geomTypes ( int  codim) const
inline

Definition at line 323 of file mgtools.hh.

◆ index() [1/2]

template<class Grid >
template<class EntityType >
int HierarchicIndexSet< Grid >::index ( const EntityType &  e) const
inline

Definition at line 304 of file mgtools.hh.

◆ index() [2/2]

template<class Grid >
template<int cc>
int HierarchicIndexSet< Grid >::index ( const typename Grid::Traits::template Codim< cc >::Entity &  e) const
inline

Definition at line 294 of file mgtools.hh.

◆ init()

template<class Grid >
void HierarchicIndexSet< Grid >::init ( )
inline

◆ operator=()

template<class Grid >
HierarchicIndexSet & HierarchicIndexSet< Grid >::operator= ( const HierarchicIndexSet< Grid > &  other)
inline

Definition at line 190 of file mgtools.hh.

◆ out()

template<class Grid >
void HierarchicIndexSet< Grid >::out ( std::ostream &  o) const
inline

Definition at line 371 of file mgtools.hh.

◆ size() [1/2]

template<class Grid >
int HierarchicIndexSet< Grid >::size ( Dune::GeometryType  type) const
inline

◆ size() [2/2]

template<class Grid >
int HierarchicIndexSet< Grid >::size ( int  codim) const
inline

Definition at line 339 of file mgtools.hh.

◆ subIndex()

template<class Grid >
template<int cc>
int HierarchicIndexSet< Grid >::subIndex ( const typename Grid::Traits::template Codim< 0 >::Entity &  e,
int  i 
) const
inline

Definition at line 314 of file mgtools.hh.

◆ update() [1/2]

template<class Grid >
void HierarchicIndexSet< Grid >::update ( )
inline

◆ update() [2/2]

template<class Grid >
void HierarchicIndexSet< Grid >::update ( int  maxlevel_)
inline

update hierarchic index set, e.g. after grid change

Definition at line 220 of file mgtools.hh.


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