v0.14.0
Public Member Functions | Private Attributes | List of all members
MoFEM::IdxDataTypePtr Struct Reference
Collaboration diagram for MoFEM::IdxDataTypePtr:
[legend]

Public Member Functions

 IdxDataTypePtr (const int *ptr)
 
int getDofIdx () const
 
UId getUId () const
 

Private Attributes

const int * pTr
 

Detailed Description

Definition at line 26 of file ProblemsManager.cpp.

Constructor & Destructor Documentation

◆ IdxDataTypePtr()

MoFEM::IdxDataTypePtr::IdxDataTypePtr ( const int *  ptr)
inline

Definition at line 27 of file ProblemsManager.cpp.

27 : pTr(ptr) {}

Member Function Documentation

◆ getDofIdx()

int MoFEM::IdxDataTypePtr::getDofIdx ( ) const
inline

Definition at line 28 of file ProblemsManager.cpp.

28  {
29  int global_dof = pTr[4];
30  return global_dof;
31  }

◆ getUId()

UId MoFEM::IdxDataTypePtr::getUId ( ) const
inline

Definition at line 32 of file ProblemsManager.cpp.

32  {
33  unsigned int b0, b1, b2, b3;
34  bcopy(&pTr[0], &b0, sizeof(int));
35  bcopy(&pTr[1], &b1, sizeof(int));
36  bcopy(&pTr[2], &b2, sizeof(int));
37  bcopy(&pTr[3], &b3, sizeof(int));
38  UId uid = static_cast<UId>(b0) | static_cast<UId>(b1) << 8 * sizeof(int) |
39  static_cast<UId>(b2) << 16 * sizeof(int) |
40  static_cast<UId>(b3) << 24 * sizeof(int);
41  return uid;
42  }

Member Data Documentation

◆ pTr

const int* MoFEM::IdxDataTypePtr::pTr
private

Definition at line 45 of file ProblemsManager.cpp.


The documentation for this struct was generated from the following file:
MoFEM::IdxDataTypePtr::pTr
const int * pTr
Definition: ProblemsManager.cpp:45
MoFEM::Types::UId
uint128_t UId
Unique Id.
Definition: Types.hpp:31
convert.int
int
Definition: convert.py:64