dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
Dune::MMeshGlobalIdSet< GridImp > Class Template Reference

#include <dune/mmesh/grid/indexsets.hh>

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

Public Types

using IdType = MMeshImpl::MultiId
 define the type used for persistent indices
 

Public Member Functions

 MMeshGlobalIdSet (const GridImp *g)
 constructor stores reference to a grid
 
void init ()
 store element and vertex id count
 
template<int cd>
std::enable_if_t< cd==dim, IdTypeid (const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
 get id of an entity
 
template<int cd>
std::enable_if_t< cd !=dim, IdTypeid (const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
 
template<int d = dim>
std::enable_if_t< d==2, IdTypesubId (const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i, int codim) const
 get id of subEntity
 
template<int d = dim>
std::enable_if_t< d==3, IdTypesubId (const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i, int codim) const
 
template<int d = dim>
std::enable_if_t< d==2, void > update (const GridImp *grid)
 update id set in 2d
 
template<int d = dim>
std::enable_if_t< d==3, void > update (const GridImp *grid)
 update id set in 3d
 
std::size_t setNextId (HostGridEntity< dim > vh) const
 advanced method to set the id of a vertex manually
 
IdType id (const Entity &e) const
 
IdType id (const typename Codim< cc >::Entity &e) const
 
IdType subId (const typename Codim< 0 >::Entity &e, int i, unsigned int codim) const
 

Public Attributes

GridImp * grid_
 
std::size_t nextVertexId_
 

Static Public Attributes

static constexpr auto dimension
 

Member Typedef Documentation

◆ IdType

template<class GridImp >
using Dune::MMeshGlobalIdSet< GridImp >::IdType = MMeshImpl::MultiId

define the type used for persistent indices

Constructor & Destructor Documentation

◆ MMeshGlobalIdSet()

template<class GridImp >
Dune::MMeshGlobalIdSet< GridImp >::MMeshGlobalIdSet ( const GridImp *  g)
inline

constructor stores reference to a grid

Member Function Documentation

◆ id() [1/2]

template<class GridImp >
template<int cd>
std::enable_if_t< cd==dim, IdType > Dune::MMeshGlobalIdSet< GridImp >::id ( const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity e) const
inline

get id of an entity

◆ id() [2/2]

template<class GridImp >
template<int cd>
std::enable_if_t< cd !=dim, IdType > Dune::MMeshGlobalIdSet< GridImp >::id ( const typename std::remove_const< GridImp >::type::Traits::template Codim< cd >::Entity e) const
inline

◆ init()

template<class GridImp >
void Dune::MMeshGlobalIdSet< GridImp >::init ( )
inline

store element and vertex id count

◆ setNextId()

template<class GridImp >
std::size_t Dune::MMeshGlobalIdSet< GridImp >::setNextId ( HostGridEntity< dim >  vh) const
inline

advanced method to set the id of a vertex manually

◆ subId() [1/2]

template<class GridImp >
template<int d = dim>
std::enable_if_t< d==2, IdType > Dune::MMeshGlobalIdSet< 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

◆ subId() [2/2]

template<class GridImp >
template<int d = dim>
std::enable_if_t< d==3, IdType > Dune::MMeshGlobalIdSet< GridImp >::subId ( const typename std::remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity e,
int  i,
int  codim 
) const
inline

◆ update() [1/2]

template<class GridImp >
template<int d = dim>
std::enable_if_t< d==2, void > Dune::MMeshGlobalIdSet< GridImp >::update ( const GridImp *  grid)
inline

update id set in 2d

◆ update() [2/2]

template<class GridImp >
template<int d = dim>
std::enable_if_t< d==3, void > Dune::MMeshGlobalIdSet< GridImp >::update ( const GridImp *  grid)
inline

update id set in 3d

Member Data Documentation

◆ grid_

template<class GridImp >
GridImp* Dune::MMeshGlobalIdSet< GridImp >::grid_

◆ nextVertexId_

template<class GridImp >
std::size_t Dune::MMeshGlobalIdSet< GridImp >::nextVertexId_
mutable

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