dune-alugrid  2.8-git
Classes | Public Types | Public Member Functions | List of all members
Dune::DefaultIndexSet< GridImp, IteratorImp > Class Template Reference

DefaultIndexSet creates an index set by using the grids persistent container an a given pair of iterators. More...

#include <dune/alugrid/common/defaultindexsets.hh>

Inheritance diagram for Dune::DefaultIndexSet< GridImp, IteratorImp >:
Inheritance graph

Classes

struct  Index
 

Public Types

enum  { ncodim = GridType::dimension + 1 }
 
typedef unsigned int IndexType
 type of index More...
 
typedef std::vector< GeometryType > Types
 type of geometry types More...
 
typedef PersistentContainer< GridType, IndexPersistentContainerType
 
typedef std::vector< std::unique_ptr< PersistentContainerType > > PersistentContainerVectorType
 

Public Member Functions

 DefaultIndexSet (const GridType &grid, const IteratorType &begin, const IteratorType &end, const int level=-1)
 
const PersistentContainerTypeindexContainer (const size_t codim) const
 
PersistentContainerTypeindexContainer (const size_t codim)
 
template<class EntityType >
IndexType index (const EntityType &en) const
 return LevelIndex of given entity More...
 
template<int cd>
IndexType index (const typename GridImp::template Codim< cd >::Entity &en) const
 return LevelIndex of given entity More...
 
template<int cc>
IndexType subIndex (const typename std::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 More...
 
IndexType size (int codim) const
 return size of IndexSet for a given level and codim More...
 
IndexType size (GeometryType type) const
 
void calcNewIndex (const IteratorType &begin, const IteratorType &end)
 
const std::vector< GeometryType > & geomTypes (int codim) const
 deliver all geometry types used in this grid More...
 
Types types (const int codim) const
 deliver all geometry types used in this grid More...
 
bool containsIndex (const int cd, const int idx) const
 returns true if this set provides an index for given entity More...
 

Detailed Description

template<class GridImp, class IteratorImp>
class Dune::DefaultIndexSet< GridImp, IteratorImp >

DefaultIndexSet creates an index set by using the grids persistent container an a given pair of iterators.

Member Typedef Documentation

◆ IndexType

template<class GridImp , class IteratorImp >
typedef unsigned int Dune::DefaultIndexSet< GridImp, IteratorImp >::IndexType

type of index

◆ PersistentContainerType

template<class GridImp , class IteratorImp >
typedef PersistentContainer< GridType, Index > Dune::DefaultIndexSet< GridImp, IteratorImp >::PersistentContainerType

◆ PersistentContainerVectorType

template<class GridImp , class IteratorImp >
typedef std::vector< std::unique_ptr< PersistentContainerType > > Dune::DefaultIndexSet< GridImp, IteratorImp >::PersistentContainerVectorType

◆ Types

template<class GridImp , class IteratorImp >
typedef std::vector< GeometryType > Dune::DefaultIndexSet< GridImp, IteratorImp >::Types

type of geometry types

Member Enumeration Documentation

◆ anonymous enum

template<class GridImp , class IteratorImp >
anonymous enum
Enumerator
ncodim 

Constructor & Destructor Documentation

◆ DefaultIndexSet()

template<class GridImp , class IteratorImp >
Dune::DefaultIndexSet< GridImp, IteratorImp >::DefaultIndexSet ( const GridType &  grid,
const IteratorType &  begin,
const IteratorType &  end,
const int  level = -1 
)
inline

create index set by using the given begin and end iterator for the given level (level == -1 means leaf level)

Member Function Documentation

◆ calcNewIndex()

template<class GridImp , class IteratorImp >
void Dune::DefaultIndexSet< GridImp, IteratorImp >::calcNewIndex ( const IteratorType &  begin,
const IteratorType &  end 
)
inline

do calculation of the index set, has to be called when grid was changed or if index set is created

◆ contains()

template<class GridImp , class IteratorImp >
template<class EntityType >
bool Dune::DefaultIndexSet< GridImp, IteratorImp >::contains ( const EntityType &  en) const
inline

returns true if this set provides an index for given entity

◆ containsIndex()

template<class GridImp , class IteratorImp >
bool Dune::DefaultIndexSet< GridImp, IteratorImp >::containsIndex ( const int  cd,
const int  idx 
) const
inline

returns true if this set provides an index for given entity

◆ geomTypes()

template<class GridImp , class IteratorImp >
const std::vector<GeometryType>& Dune::DefaultIndexSet< GridImp, IteratorImp >::geomTypes ( int  codim) const
inline

deliver all geometry types used in this grid

◆ index() [1/2]

template<class GridImp , class IteratorImp >
template<class EntityType >
IndexType Dune::DefaultIndexSet< GridImp, IteratorImp >::index ( const EntityType &  en) const
inline

return LevelIndex of given entity

◆ index() [2/2]

template<class GridImp , class IteratorImp >
template<int cd>
IndexType Dune::DefaultIndexSet< GridImp, IteratorImp >::index ( const typename GridImp::template Codim< cd >::Entity &  en) const
inline

return LevelIndex of given entity

◆ indexContainer() [1/2]

template<class GridImp , class IteratorImp >
PersistentContainerType& Dune::DefaultIndexSet< GridImp, IteratorImp >::indexContainer ( const size_t  codim)
inline

◆ indexContainer() [2/2]

template<class GridImp , class IteratorImp >
const PersistentContainerType& Dune::DefaultIndexSet< GridImp, IteratorImp >::indexContainer ( const size_t  codim) const
inline

◆ size() [1/2]

template<class GridImp , class IteratorImp >
IndexType Dune::DefaultIndexSet< GridImp, IteratorImp >::size ( GeometryType  type) const
inline

return size of IndexSet for a given level and codim this method is to be revised

◆ size() [2/2]

template<class GridImp , class IteratorImp >
IndexType Dune::DefaultIndexSet< GridImp, IteratorImp >::size ( int  codim) const
inline

return size of IndexSet for a given level and codim

◆ subIndex()

template<class GridImp , class IteratorImp >
template<int cc>
IndexType Dune::DefaultIndexSet< GridImp, IteratorImp >::subIndex ( const typename std::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

◆ types()

template<class GridImp , class IteratorImp >
Types Dune::DefaultIndexSet< GridImp, IteratorImp >::types ( const int  codim) const
inline

deliver all geometry types used in this grid


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