3 #ifndef DUNE_GRID_YASPGRIDIDSET_HH 4 #define DUNE_GRID_YASPGRIDIDSET_HH 16 template<
class Gr
idImp>
17 class YaspGlobalIdSet :
public IdSet<GridImp,YaspGlobalIdSet<GridImp>,
18 typename std::remove_const<GridImp>::type::PersistentIndexType >
24 typedef YaspGlobalIdSet< GridImp > This;
28 typedef typename std::remove_const<GridImp>::type::PersistentIndexType
IdType;
42 IdType
id (
const typename std::remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e)
const 44 return GridImp::getRealImplementation(e).persistentIndex();
52 IdType
subId (
const typename std::remove_const<GridImp>::type::Traits::template Codim< 0 >::Entity &e,
53 int i,
unsigned int codim )
const 55 return GridImp::getRealImplementation(e).subPersistentIndex(i,codim);
62 #endif // DUNE_GRID_YASPGRIDIDSET_HH Include standard header files.
Definition: agrid.hh:58
std::remove_const< GridImp >::type::PersistentIndexType IdType
define the type used for persistent indices
Definition: yaspgrididset.hh:28
IdType id(const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
get id of an entity
Definition: yaspgrididset.hh:42
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
Definition: yaspgrididset.hh:52
YaspGlobalIdSet()
Only default-constructible.
Definition: yaspgrididset.hh:33
Id Set Interface.
Definition: common/grid.hh:347