v0.9.2
Public Member Functions | Private Attributes | List of all members
MoFEM::IdxDataTypePtr Struct Reference

Public Member Functions

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

Private Attributes

const int * pTr
 

Detailed Description

Definition at line 47 of file ProblemsManager.cpp.

Constructor & Destructor Documentation

◆ IdxDataTypePtr()

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

Definition at line 48 of file ProblemsManager.cpp.

48 : pTr(ptr) {}

Member Function Documentation

◆ getDofIdx()

int MoFEM::IdxDataTypePtr::getDofIdx ( ) const

Definition at line 49 of file ProblemsManager.cpp.

49  {
50  int global_dof = pTr[4];
51  return global_dof;
52  }

◆ getUId()

UId MoFEM::IdxDataTypePtr::getUId ( ) const

Definition at line 53 of file ProblemsManager.cpp.

53  {
54  unsigned int b0, b1, b2, b3;
55  bcopy(&pTr[0], &b0, sizeof(int));
56  bcopy(&pTr[1], &b1, sizeof(int));
57  bcopy(&pTr[2], &b2, sizeof(int));
58  bcopy(&pTr[3], &b3, sizeof(int));
59  UId uid = static_cast<UId>(b0) | static_cast<UId>(b1) << 8 * sizeof(int) |
60  static_cast<UId>(b2) << 16 * sizeof(int) |
61  static_cast<UId>(b3) << 24 * sizeof(int);
62  return uid;
63  }
uint128_t UId
Unique Id.
Definition: Types.hpp:41

Member Data Documentation

◆ pTr

const int* MoFEM::IdxDataTypePtr::pTr
private

Definition at line 66 of file ProblemsManager.cpp.


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