dune-multidomaingrid 2.8
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType > Class Template Reference

#include <dune/grid/multidomaingrid/indexsets.hh>

Inheritance diagram for Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >:
Inheritance graph

Public Types

typedef BaseT::Types Types
 
using MDGridTraits = typename Grid::MDGridTraits
 
typedef MDGridTraits::template Codim< 0 >::SubDomainSet SubDomainSet
 
typedef MDGridTraits::SubDomainIndex SubDomainIndex
 
typedef HostIndexSet::IndexType IndexType
 

Public Member Functions

template<int codim>
IndexType index (const typename Grid::Traits::template Codim< codim >::Entity &e) const
 Returns the index of the entity with codimension codim.
 
template<typename Entity >
IndexType index (const Entity &e) const
 Returns the index of the entity.
 
template<int codim, typename Entity >
IndexType subIndex (const Entity &e, int i) const
 Returns the subdindex of the i-th subentity of e with codimension codim.
 
template<typename Entity >
IndexType subIndex (const Entity &e, int i, unsigned int codim) const
 Returns the subdindex of the i-th subentity of e with codimension codim.
 
Types types (int codim) const
 Returns a list of all geometry types with codimension codim contained in the grid.
 
IndexType size (GeometryType type) const
 Returns the number of entities with GeometryType type in the grid.
 
IndexType size (int codim) const
 Returns the number of entities with codimension codim in the grid.
 
template<typename EntityType >
bool contains (const EntityType &e) const
 Returns true if the entity is contained in the grid.
 
template<typename EntityType >
const MapEntry< EntityType::codimension >::SubDomainSetsubDomains (const EntityType &e) const
 Returns a constant reference to the SubDomainSet of the given entity.
 
template<int cc>
const MapEntry< cc >::SubDomainSetsubDomains (const typename Grid::Traits::template Codim< cc >::Entity &e) const
 
template<class EntityType >
IndexType index (SubDomainIndex subDomain, const EntityType &e) const
 Returns the index of the entity in a specific subdomain.
 
template<int cc>
IndexType index (SubDomainIndex subDomain, const typename Grid::Traits::template Codim< cc >::Entity &e) const
 
template<typename SubDomainEntity >
IndexType subIndex (SubDomainIndex subDomain, const SubDomainEntity &e, int i, int codim) const
 
Types types (SubDomainIndex subDomain, int codim) const
 
IndexType size (SubDomainIndex subDomain, GeometryType type) const
 
IndexType size (SubDomainIndex subDomain, int codim) const
 
template<typename EntityType >
bool contains (SubDomainIndex subDomain, const EntityType &e) const
 Returns true if the entity is contained in a specific subdomain.
 
 IndexSetWrapper (const GridImp &grid, HostGridView hostGridView)
 
 IndexSetWrapper (const ThisType &rhs)
 

Static Public Attributes

static const int dimension = Grid::dimension
 
static const std::size_t maxSubDomains = SubDomainSet::maxSize
 

Detailed Description

template<typename GridImp, typename HostGridViewType>
class Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >

Index set for the MultiDomainGrid.

Member Typedef Documentation

◆ IndexType

template<typename GridImp , typename HostGridViewType >
typedef HostIndexSet::IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::IndexType

◆ MDGridTraits

template<typename GridImp , typename HostGridViewType >
using Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::MDGridTraits = typename Grid::MDGridTraits

◆ SubDomainIndex

template<typename GridImp , typename HostGridViewType >
typedef MDGridTraits::SubDomainIndex Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::SubDomainIndex

◆ SubDomainSet

template<typename GridImp , typename HostGridViewType >
typedef MDGridTraits::template Codim<0>::SubDomainSet Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::SubDomainSet

◆ Types

template<typename GridImp , typename HostGridViewType >
typedef BaseT::Types Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::Types

Constructor & Destructor Documentation

◆ IndexSetWrapper() [1/2]

template<typename GridImp , typename HostGridViewType >
Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::IndexSetWrapper ( const GridImp &  grid,
HostGridView  hostGridView 
)
inline

◆ IndexSetWrapper() [2/2]

template<typename GridImp , typename HostGridViewType >
Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::IndexSetWrapper ( const ThisType rhs)
inlineexplicit

Member Function Documentation

◆ contains() [1/2]

template<typename GridImp , typename HostGridViewType >
template<typename EntityType >
bool Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::contains ( const EntityType &  e) const
inline

Returns true if the entity is contained in the grid.

◆ contains() [2/2]

template<typename GridImp , typename HostGridViewType >
template<typename EntityType >
bool Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::contains ( SubDomainIndex  subDomain,
const EntityType &  e 
) const
inline

Returns true if the entity is contained in a specific subdomain.

◆ index() [1/4]

template<typename GridImp , typename HostGridViewType >
template<typename Entity >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::index ( const Entity &  e) const
inline

Returns the index of the entity.

◆ index() [2/4]

template<typename GridImp , typename HostGridViewType >
template<int codim>
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::index ( const typename Grid::Traits::template Codim< codim >::Entity &  e) const
inline

Returns the index of the entity with codimension codim.

◆ index() [3/4]

template<typename GridImp , typename HostGridViewType >
template<class EntityType >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::index ( SubDomainIndex  subDomain,
const EntityType &  e 
) const
inline

Returns the index of the entity in a specific subdomain.

◆ index() [4/4]

template<typename GridImp , typename HostGridViewType >
template<int cc>
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::index ( SubDomainIndex  subDomain,
const typename Grid::Traits::template Codim< cc >::Entity &  e 
) const
inline

Returns the index of the entity with codimension cc in a specific subdomain.

Template Parameters
thecodimension of the entity.

◆ size() [1/4]

template<typename GridImp , typename HostGridViewType >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::size ( GeometryType  type) const
inline

Returns the number of entities with GeometryType type in the grid.

◆ size() [2/4]

template<typename GridImp , typename HostGridViewType >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::size ( int  codim) const
inline

Returns the number of entities with codimension codim in the grid.

◆ size() [3/4]

template<typename GridImp , typename HostGridViewType >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::size ( SubDomainIndex  subDomain,
GeometryType  type 
) const
inline

◆ size() [4/4]

template<typename GridImp , typename HostGridViewType >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::size ( SubDomainIndex  subDomain,
int  codim 
) const
inline

◆ subDomains() [1/2]

template<typename GridImp , typename HostGridViewType >
template<typename EntityType >
const MapEntry< EntityType::codimension >::SubDomainSet & Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::subDomains ( const EntityType &  e) const
inline

Returns a constant reference to the SubDomainSet of the given entity.

◆ subDomains() [2/2]

template<typename GridImp , typename HostGridViewType >
template<int cc>
const MapEntry< cc >::SubDomainSet & Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::subDomains ( const typename Grid::Traits::template Codim< cc >::Entity &  e) const
inline

Returns a constant reference to the SubDomainSet of the given entity with codimension cc.

Template Parameters
ccthe codimension of the entity.

◆ subIndex() [1/3]

template<typename GridImp , typename HostGridViewType >
template<int codim, typename Entity >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::subIndex ( const Entity &  e,
int  i 
) const
inline

Returns the subdindex of the i-th subentity of e with codimension codim.

◆ subIndex() [2/3]

template<typename GridImp , typename HostGridViewType >
template<typename Entity >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::subIndex ( const Entity &  e,
int  i,
unsigned int  codim 
) const
inline

Returns the subdindex of the i-th subentity of e with codimension codim.

◆ subIndex() [3/3]

template<typename GridImp , typename HostGridViewType >
template<typename SubDomainEntity >
IndexType Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::subIndex ( SubDomainIndex  subDomain,
const SubDomainEntity &  e,
int  i,
int  codim 
) const
inline

◆ types() [1/2]

template<typename GridImp , typename HostGridViewType >
Types Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::types ( int  codim) const
inline

Returns a list of all geometry types with codimension codim contained in the grid.

◆ types() [2/2]

template<typename GridImp , typename HostGridViewType >
Types Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::types ( SubDomainIndex  subDomain,
int  codim 
) const
inline

Member Data Documentation

◆ dimension

template<typename GridImp , typename HostGridViewType >
const int Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::dimension = Grid::dimension
static

◆ maxSubDomains

template<typename GridImp , typename HostGridViewType >
const std::size_t Dune::mdgrid::IndexSetWrapper< GridImp, HostGridViewType >::maxSubDomains = SubDomainSet::maxSize
static

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