dune-grid  2.5-git
Public Types | Public Member Functions | Public Attributes | List of all members
Dune::IdentityGridLocalIdSet< GridImp > Class Template Reference

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

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

Public Types

typedef HostGrid::Traits::LocalIdSet::IdType IdType
 define the type used for persistent local ids More...
 

Public Member Functions

 IdentityGridLocalIdSet (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::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 std::remove_const< GridImp >::type::Traits::template Codim< cc >::Entity &e) const
 Get id of an entity of codim cc. Unhandy because template parameter must be supplied explicitely. 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 i of co-dimension codim of a co-dimension 0 entity. More...
 

Public Attributes

const GridImp * grid_
 

Member Typedef Documentation

§ IdType

template<class GridImp>
typedef HostGrid::Traits::LocalIdSet::IdType Dune::IdentityGridLocalIdSet< GridImp >::IdType

define the type used for persistent local ids

Constructor & Destructor Documentation

§ IdentityGridLocalIdSet()

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

constructor stores reference to a grid

Member Function Documentation

§ id() [1/3]

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

get id of an entity

§ id() [2/3]

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

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

§ id() [3/3]

IdType Dune::IdSet< GridImp, IdentityGridLocalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::LocalIdSet::IdType >::id ( const typename std::remove_const< GridImp >::type::Traits::template Codim< cc >::Entity e) const
inlineinherited

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

§ subId() [1/2]

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

get id of subEntity

§ subId() [2/2]

IdType Dune::IdSet< GridImp, IdentityGridLocalIdSet< GridImp > , std::remove_const< GridImp >::type::HostGridType::Traits::LocalIdSet::IdType >::subId ( const typename std::remove_const< GridImp >::type::Traits::template 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.

§ update()

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

Member Data Documentation

§ grid_

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

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