dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Dune::Fem::NonAdaptiveIndexSet< IndexSet > Class Template Reference

wrapper for (adaptive) index sets that disables all support for adaptivity More...

#include <dune/fem/gridpart/common/nonadaptiveindexset.hh>

Inheritance diagram for Dune::Fem::NonAdaptiveIndexSet< IndexSet >:
Inheritance graph

Public Types

typedef BaseType::IndexType IndexType
 index type
 
typedef Traits::Types Types
 geometry type range type
 

Public Member Functions

 NonAdaptiveIndexSet (const IndexSet &indexSet)
 
BaseType::Types types (int codim) const
 return range of geometry types
 
template<class Entity >
bool contains (const Entity &entity) const
 return true if entity has index
 
IndexType size (GeometryType type) const
 return number of entities of given type
 
IndexType size (int codim) const
 
template<class Entity >
IndexType index (const Entity &entity) const
 return index for given entity
 
template<int codim>
IndexType index (const typename BaseType::template Codim< codim >::Entity &entity) const
 return index for given entity
 
template<class Entity >
IndexType subIndex (const Entity &entity, int i, unsigned int cd) const
 return index for given subentity
 
template<int codim>
IndexType subIndex (const typename BaseType::template Codim< codim >::Entity &entity, int i, unsigned int cd) const
 return index for given subentity
 
void backup () const
 please doc me
 
void restore ()
 please doc me
 
template<class T >
void write (OutStreamInterface< T > &stream) const
 please doc me
 
template<class T >
void read (InStreamInterface< T > &stream)
 please doc me
 
template<int codim>
IndexType index (const typename Codim< codim >::Entity &entity) const
 return index for given entity
 
template<int codim>
IndexType subIndex (const typename Codim< codim >::Entity &entity, int i, unsigned int cd) const
 return index for given subentity
 
void requestCodimensions (const std::vector< int > &codimensions) const
 receive request for codimension support in case index set is adaptive
 
Adaptation
int numberOfHoles (GeometryType type) const
 return number of holes for given type
 
int oldIndex (int hole, GeometryType type) const
 return old index for given hole and type
 
int newIndex (int hole, GeometryType type) const
 return new index for given hole and type
 

Static Public Member Functions

static void resize ()
 please doc me
 
static constexpr bool compress () noexcept
 please doc me
 
static void insertEntity (const typename BaseType::template Codim< 0 >::Entity &)
 please doc me
 
static void removeEntity (const typename BaseType::template Codim< 0 >::Entity &)
 please doc me
 
static constexpr int numberOfHoles (...) noexcept
 return number of holes for given type
 
static constexpr int oldIndex (...) noexcept
 return old index for given hole and type
 
static constexpr int newIndex (...) noexcept
 return new index for given hole and type
 

Static Public Attributes

static const int dimension = Traits::dimension
 grid dimension
 

Protected Member Functions

Traits::IndexSetType & impl ()
 
const Traits::IndexSetType & impl () const
 

Detailed Description

template<class IndexSet>
class Dune::Fem::NonAdaptiveIndexSet< IndexSet >

wrapper for (adaptive) index sets that disables all support for adaptivity

Member Typedef Documentation

◆ IndexType

template<class IndexSet >
typedef BaseType::IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::IndexType

index type

◆ Types

template<class Traits >
typedef Traits::Types Dune::Fem::IndexSet< Traits >::Types
inherited

geometry type range type

Constructor & Destructor Documentation

◆ NonAdaptiveIndexSet()

template<class IndexSet >
Dune::Fem::NonAdaptiveIndexSet< IndexSet >::NonAdaptiveIndexSet ( const IndexSet indexSet)
inlineexplicit

Member Function Documentation

◆ backup()

template<class IndexSet >
void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::backup ( ) const
inline

please doc me

◆ compress()

template<class IndexSet >
static constexpr bool Dune::Fem::NonAdaptiveIndexSet< IndexSet >::compress ( )
inlinestaticconstexprnoexcept

please doc me

◆ contains()

template<class IndexSet >
template<class Entity >
bool Dune::Fem::NonAdaptiveIndexSet< IndexSet >::contains ( const Entity &  entity) const
inline

return true if entity has index

◆ impl() [1/2]

Traits::IndexSetType & Dune::Fem::ConsecutiveIndexSet< NonAdaptiveIndexSetTraits< IndexSet > >::impl ( )
inlineprotectedinherited

◆ impl() [2/2]

const Traits::IndexSetType & Dune::Fem::IndexSet< NonAdaptiveIndexSetTraits< IndexSet > >::impl ( ) const
inlineprotectedinherited

◆ index() [1/3]

template<class IndexSet >
template<class Entity >
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::index ( const Entity &  entity) const
inline

return index for given entity

◆ index() [2/3]

template<class IndexSet >
template<int codim>
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::index ( const typename BaseType::template Codim< codim >::Entity &  entity) const
inline

return index for given entity

◆ index() [3/3]

template<class Traits >
template<int codim>
IndexType Dune::Fem::IndexSet< Traits >::index ( const typename Codim< codim >::Entity &  entity) const
inlineinherited

return index for given entity

◆ insertEntity()

template<class IndexSet >
static void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::insertEntity ( const typename BaseType::template Codim< 0 >::Entity &  )
inlinestatic

please doc me

◆ newIndex() [1/2]

template<class IndexSet >
static constexpr int Dune::Fem::NonAdaptiveIndexSet< IndexSet >::newIndex (   ...)
inlinestaticconstexprnoexcept

return new index for given hole and type

◆ newIndex() [2/2]

int Dune::Fem::AdaptiveIndexSet< NonAdaptiveIndexSetTraits< IndexSet > >::newIndex ( int  hole,
GeometryType  type 
) const
inlineinherited

return new index for given hole and type

◆ numberOfHoles() [1/2]

template<class IndexSet >
static constexpr int Dune::Fem::NonAdaptiveIndexSet< IndexSet >::numberOfHoles (   ...)
inlinestaticconstexprnoexcept

return number of holes for given type

◆ numberOfHoles() [2/2]

int Dune::Fem::AdaptiveIndexSet< NonAdaptiveIndexSetTraits< IndexSet > >::numberOfHoles ( GeometryType  type) const
inlineinherited

return number of holes for given type

◆ oldIndex() [1/2]

template<class IndexSet >
static constexpr int Dune::Fem::NonAdaptiveIndexSet< IndexSet >::oldIndex (   ...)
inlinestaticconstexprnoexcept

return old index for given hole and type

◆ oldIndex() [2/2]

int Dune::Fem::AdaptiveIndexSet< NonAdaptiveIndexSetTraits< IndexSet > >::oldIndex ( int  hole,
GeometryType  type 
) const
inlineinherited

return old index for given hole and type

◆ read()

template<class IndexSet >
template<class T >
void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::read ( InStreamInterface< T > &  stream)
inline

please doc me

◆ removeEntity()

template<class IndexSet >
static void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::removeEntity ( const typename BaseType::template Codim< 0 >::Entity &  )
inlinestatic

please doc me

◆ requestCodimensions()

template<class Traits >
void Dune::Fem::IndexSet< Traits >::requestCodimensions ( const std::vector< int > &  codimensions) const
inlineinherited

receive request for codimension support in case index set is adaptive

◆ resize()

template<class IndexSet >
static void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::resize ( )
inlinestatic

please doc me

◆ restore()

template<class IndexSet >
void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::restore ( )
inline

please doc me

◆ size() [1/2]

template<class IndexSet >
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::size ( GeometryType  type) const
inline

return number of entities of given type

◆ size() [2/2]

template<class IndexSet >
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::size ( int  codim) const
inline

◆ subIndex() [1/3]

template<class IndexSet >
template<class Entity >
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::subIndex ( const Entity &  entity,
int  i,
unsigned int  cd 
) const
inline

return index for given subentity

◆ subIndex() [2/3]

template<class IndexSet >
template<int codim>
IndexType Dune::Fem::NonAdaptiveIndexSet< IndexSet >::subIndex ( const typename BaseType::template Codim< codim >::Entity &  entity,
int  i,
unsigned int  cd 
) const
inline

return index for given subentity

◆ subIndex() [3/3]

template<class Traits >
template<int codim>
IndexType Dune::Fem::IndexSet< Traits >::subIndex ( const typename Codim< codim >::Entity &  entity,
int  i,
unsigned int  cd 
) const
inlineinherited

return index for given subentity

◆ types()

template<class IndexSet >
BaseType::Types Dune::Fem::NonAdaptiveIndexSet< IndexSet >::types ( int  codim) const
inline

return range of geometry types

◆ write()

template<class IndexSet >
template<class T >
void Dune::Fem::NonAdaptiveIndexSet< IndexSet >::write ( OutStreamInterface< T > &  stream) const
inline

please doc me

Member Data Documentation

◆ dimension

template<class Traits >
const int Dune::Fem::IndexSet< Traits >::dimension = Traits::dimension
staticinherited

grid dimension


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