COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Attributes | List of all members
GidToLocal Class Reference

Helper class to convert global to local indices. More...

Public Member Functions

 GidToLocal (const mesh::Dictionary::GlbToLocT &mesh_glb_to_loc, const Uint local_id_start)
 
std::pair< Uint, bool > create_local_id (const Uint global_id)
 
bool exists (const Uint global_id)
 Check if the given global id is registered. More...
 
Uint operator[] (const Uint global_id) const
 Read only access, requiring that the element exists. More...
 

Private Attributes

const mesh::Dictionary::GlbToLocTm_mesh_glb_to_loc
 
GidMapT new_glb_to_loc
 
Uint m_local_id
 

Detailed Description

Helper class to convert global to local indices.

Definition at line 394 of file PHG.cpp.

Constructor & Destructor Documentation

GidToLocal ( const mesh::Dictionary::GlbToLocT mesh_glb_to_loc,
const Uint  local_id_start 
)
inline

Definition at line 397 of file PHG.cpp.

Member Function Documentation

std::pair<Uint, bool> create_local_id ( const Uint  global_id)
inline

Create a new local ID for the given global ID, or return the previous one if it existed If a new ID was created, the second part of the return value is true

Definition at line 405 of file PHG.cpp.

bool exists ( const Uint  global_id)
inline

Check if the given global id is registered.

Definition at line 424 of file PHG.cpp.

Uint operator[] ( const Uint  global_id) const
inline

Read only access, requiring that the element exists.

Definition at line 430 of file PHG.cpp.

Member Data Documentation

Uint m_local_id
private

Definition at line 451 of file PHG.cpp.

const mesh::Dictionary::GlbToLocT* m_mesh_glb_to_loc
private

Definition at line 445 of file PHG.cpp.

GidMapT new_glb_to_loc
private

Definition at line 448 of file PHG.cpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin