dune-grid 2.9.0
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Dune::IdentityGridGlobalIdSet< GridImp > Class Template Reference

#include <dune/grid/identitygrid/identitygridindexsets.hh>

Inheritance diagram for Dune::IdentityGridGlobalIdSet< GridImp >:
Inheritance graph

Public Types

typedef HostGrid::Traits::GlobalIdSet::IdType IdType
 define the type used for persistent indices More...
 

Public Member Functions

 IdentityGridGlobalIdSet (const GridImp &g)
 constructor stores reference to a grid More...
 
template<int cd>
IdType id (const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
 get id of an entity More...
 
IdType subId (const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i, int codim) const
 get id of subEntity More...
 
void update ()
 
IdType id (const Entity &e) const
 Get id of an entity. This method is simpler to use than the one below. More...
 
IdType id (const typename Codim< cc >::Entity &e) const
 Get id of an entity of codim cc. Unhandy because template parameter must be supplied explicitly. More...
 
IdType subId (const typename Codim< 0 >::Entity &e, int i, unsigned int codim) const
 Get id of subentity i of co-dimension codim of a co-dimension 0 entity. More...
 

Public Attributes

const GridImp * grid_
 

Static Public Attributes

static constexpr auto dimension
 dimension of the grid (maximum allowed codimension) More...
 

Member Typedef Documentation

◆ IdType

template<class GridImp >
typedef HostGrid::Traits::GlobalIdSet::IdType Dune::IdentityGridGlobalIdSet< GridImp >::IdType

define the type used for persistent indices

Constructor & Destructor Documentation

◆ IdentityGridGlobalIdSet()

template<class GridImp >
Dune::IdentityGridGlobalIdSet< GridImp >::IdentityGridGlobalIdSet ( const GridImp &  g)
inline

constructor stores reference to a grid

Member Function Documentation

◆ id() [1/3]

IdType Dune::IdSet< GridImp, IdentityGridGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::GlobalIdSet::IdType >::id ( const Entity e) const
inlineinherited

Get id of an entity. This method is simpler to use than the one below.

◆ id() [2/3]

IdType Dune::IdSet< GridImp, IdentityGridGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::GlobalIdSet::IdType >::id ( const typename Codim< cc >::Entity &  e) const
inlineinherited

Get id of an entity of codim cc. Unhandy because template parameter must be supplied explicitly.

◆ id() [3/3]

template<class GridImp >
template<int cd>
IdType Dune::IdentityGridGlobalIdSet< GridImp >::id ( const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &  e) const
inline

get id of an entity

◆ subId() [1/2]

IdType Dune::IdSet< GridImp, IdentityGridGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::GlobalIdSet::IdType >::subId ( const typename Codim< 0 >::Entity &  e,
int  i,
unsigned int  codim 
) const
inlineinherited

Get id of subentity i of co-dimension codim of a co-dimension 0 entity.

◆ subId() [2/2]

template<class GridImp >
IdType Dune::IdentityGridGlobalIdSet< GridImp >::subId ( const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &  e,
int  i,
int  codim 
) const
inline

get id of subEntity

◆ update()

template<class GridImp >
void Dune::IdentityGridGlobalIdSet< GridImp >::update ( )
inline
Todo:
Should be private

Member Data Documentation

◆ dimension

constexpr auto Dune::IdSet< GridImp, IdentityGridGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::GlobalIdSet::IdType >::dimension
staticconstexprinherited

dimension of the grid (maximum allowed codimension)

◆ grid_

template<class GridImp >
const GridImp* Dune::IdentityGridGlobalIdSet< GridImp >::grid_

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