v0.8.15
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 intpTr
 

Detailed Description

Definition at line 39 of file ProblemsManager.cpp.

Constructor & Destructor Documentation

◆ IdxDataTypePtr()

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

Definition at line 40 of file ProblemsManager.cpp.

40 : pTr(ptr) {}

Member Function Documentation

◆ getDofIdx()

int MoFEM::IdxDataTypePtr::getDofIdx ( ) const

Definition at line 41 of file ProblemsManager.cpp.

41  {
42  int global_dof = pTr[4];
43  return global_dof;
44  }

◆ getUId()

UId MoFEM::IdxDataTypePtr::getUId ( ) const

Definition at line 45 of file ProblemsManager.cpp.

45  {
46  unsigned int b0, b1, b2, b3;
47  bcopy(&pTr[0], &b0, sizeof(int));
48  bcopy(&pTr[1], &b1, sizeof(int));
49  bcopy(&pTr[2], &b2, sizeof(int));
50  bcopy(&pTr[3], &b3, sizeof(int));
51  UId uid = static_cast<UId>(b0) | static_cast<UId>(b1) << 8 * sizeof(int) |
52  static_cast<UId>(b2) << 16 * sizeof(int) |
53  static_cast<UId>(b3) << 24 * sizeof(int);
54  return uid;
55  }
uint128_t UId
Unique Id.
Definition: Common.hpp:136

Member Data Documentation

◆ pTr

const int* MoFEM::IdxDataTypePtr::pTr
private

Definition at line 58 of file ProblemsManager.cpp.


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