LifeV
MeshEntityUtilities

Data Structures

struct  IdGetter< Selector >
 Generic definition of the functor to extract the local or global ID. More...
 

Functions

template<int Selector>
ID getID (MeshEntity const &)
 
template<int Selector>
void setID (MeshEntity &, const ID)
 Generic definition of setter. More...
 
template<>
ID getID< MeshEntity::GLOBALID > (MeshEntity const &entity)
 Specialization for global id. More...
 
template<>
ID getID< MeshEntity::LOCALID > (MeshEntity const &entity)
 Specialization for local id. More...
 
template<>
void setID< MeshEntity::GLOBALID > (MeshEntity &entity, const ID id)
 Specialization for global id. More...
 
template<>
void setID< MeshEntity::LOCALID > (MeshEntity &entity, const ID id)
 Specialization for local id. More...
 

Detailed Description

Utilities to get local or global ID according to a switch The template parameter is in fact a MeshEntity::SwitchId enumerator which takes values MeshEntity::LOCALID or MeshEntity::GLOBALID. Getters are also implemented as functors for efficiency reason (allow inlining)

Todo:
Go to a separate file

Function Documentation

◆ getID()

ID LifeV::MeshEntityUtility::getID ( MeshEntity const &  )
inline

◆ setID()

void LifeV::MeshEntityUtility::setID ( MeshEntity ,
const ID   
)
inline

Generic definition of setter.

◆ getID< MeshEntity::GLOBALID >()

Specialization for global id.

Definition at line 305 of file MeshEntity.hpp.

◆ getID< MeshEntity::LOCALID >()

Specialization for local id.

Definition at line 312 of file MeshEntity.hpp.

◆ setID< MeshEntity::GLOBALID >()

void LifeV::MeshEntityUtility::setID< MeshEntity::GLOBALID > ( MeshEntity entity,
const ID  id 
)
inline

Specialization for global id.

Definition at line 319 of file MeshEntity.hpp.

◆ setID< MeshEntity::LOCALID >()

void LifeV::MeshEntityUtility::setID< MeshEntity::LOCALID > ( MeshEntity entity,
const ID  id 
)
inline

Specialization for local id.

Definition at line 326 of file MeshEntity.hpp.