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 remove_const<GridImp>::type::PersistentIndexType >
24 typedef YaspGlobalIdSet< GridImp > This;
28 typedef typename remove_const<GridImp>::type::PersistentIndexType
IdType;
42 IdType
id (
const typename remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e)
const
44 return GridImp::getRealImplementation(e).persistentIndex();
52 IdType
subId (
const typename 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
IdType id(const typename remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
get id of an entity
Definition: yaspgrididset.hh:42
Id Set Interface.
Definition: common/grid.hh:362
remove_const< GridImp >::type::PersistentIndexType IdType
define the type used for persisitent indices
Definition: yaspgrididset.hh:28
YaspGlobalIdSet()
Only default-constructible.
Definition: yaspgrididset.hh:33
Include standard header files.
Definition: agrid.hh:59
IdType subId(const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i, unsigned int codim) const
get id of subentity
Definition: yaspgrididset.hh:52