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

persistent, globally unique Ids More...

#include <dune/grid/yaspgrid/yaspgrididset.hh>

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

Public Types

typedef std::remove_const< GridImp >::type::PersistentIndexType IdType
 define the type used for persistent indices More...
 

Public Member Functions

 YaspGlobalIdSet ()
 Only default-constructible. 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, unsigned int codim) const
 get id of subentity More...
 
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...
 

Static Public Attributes

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

Detailed Description

template<class GridImp>
class Dune::YaspGlobalIdSet< GridImp >

persistent, globally unique Ids

Member Typedef Documentation

◆ IdType

template<class GridImp >
typedef std::remove_const<GridImp>::type::PersistentIndexType Dune::YaspGlobalIdSet< GridImp >::IdType

define the type used for persistent indices

Constructor & Destructor Documentation

◆ YaspGlobalIdSet()

template<class GridImp >
Dune::YaspGlobalIdSet< GridImp >::YaspGlobalIdSet ( )
inline

Only default-constructible.

Member Function Documentation

◆ id() [1/3]

IdType Dune::IdSet< GridImp, YaspGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::PersistentIndexType >::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, YaspGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::PersistentIndexType >::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::YaspGlobalIdSet< 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, YaspGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::PersistentIndexType >::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::YaspGlobalIdSet< GridImp >::subId ( const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &  e,
int  i,
unsigned int  codim 
) const
inline

get id of subentity

Member Data Documentation

◆ dimension

constexpr auto Dune::IdSet< GridImp, YaspGlobalIdSet< GridImp > , std::remove_const< GridImp >::type::PersistentIndexType >::dimension
staticconstexprinherited

dimension of the grid (maximum allowed codimension)


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