Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::MBuuid Struct Reference

struct that handles universally unique id's for the Mesh Database More...

#include <UnknownInterface.hpp>

Public Member Functions

 MBuuid ()
 default constructor that initializes to zero More...
 
 MBuuid (unsigned l, unsigned short w1, unsigned short w2, unsigned char b1, unsigned char b2, unsigned char b3, unsigned char b4, unsigned char b5, unsigned char b6, unsigned char b7, unsigned char b8)
 constructor that takes initialization arguments More...
 
 MBuuid (const MBuuid &mdbuuid)
 copy constructor More...
 
MBuuidoperator= (const MBuuid &orig)
 sets this uuid equal to another one More...
 
bool operator== (const MBuuid &orig) const
 returns whether two uuid's are equal More...
 
bool operator!= (const MBuuid &orig) const
 returns whether two uuid's are not equal More...
 

Public Attributes

unsigned data1
 uuid data storage More...
 
unsigned short data2
 
unsigned short data3
 
unsigned char data4 [8]
 

Detailed Description

struct that handles universally unique id's for the Mesh Database

Definition at line 28 of file UnknownInterface.hpp.

Constructor & Destructor Documentation

◆ MBuuid() [1/3]

moab::MBuuid::MBuuid ( )
inline

default constructor that initializes to zero

Definition at line 31 of file UnknownInterface.hpp.

32  {
33  memset( this, 0, sizeof( MBuuid ) );
34  }

◆ MBuuid() [2/3]

moab::MBuuid::MBuuid ( unsigned  l,
unsigned short  w1,
unsigned short  w2,
unsigned char  b1,
unsigned char  b2,
unsigned char  b3,
unsigned char  b4,
unsigned char  b5,
unsigned char  b6,
unsigned char  b7,
unsigned char  b8 
)
inline

constructor that takes initialization arguments

Definition at line 36 of file UnknownInterface.hpp.

47  {
48  data1 = l;
49  data2 = w1;
50  data3 = w2;
51  data4[0] = b1;
52  data4[1] = b2;
53  data4[2] = b3;
54  data4[3] = b4;
55  data4[4] = b5;
56  data4[5] = b6;
57  data4[6] = b7;
58  data4[7] = b8;
59  }

References data1, data2, data3, and data4.

◆ MBuuid() [3/3]

moab::MBuuid::MBuuid ( const MBuuid mdbuuid)
inline

copy constructor

Definition at line 61 of file UnknownInterface.hpp.

62  {
63  memcpy( this, &mdbuuid, sizeof( MBuuid ) );
64  }

Member Function Documentation

◆ operator!=()

bool moab::MBuuid::operator!= ( const MBuuid orig) const
inline

returns whether two uuid's are not equal

Definition at line 77 of file UnknownInterface.hpp.

78  {
79  return !( *this == orig );
80  }

◆ operator=()

MBuuid& moab::MBuuid::operator= ( const MBuuid orig)
inline

sets this uuid equal to another one

Definition at line 66 of file UnknownInterface.hpp.

67  {
68  memcpy( this, &orig, sizeof( MBuuid ) );
69  return *this;
70  }

◆ operator==()

bool moab::MBuuid::operator== ( const MBuuid orig) const
inline

returns whether two uuid's are equal

Definition at line 72 of file UnknownInterface.hpp.

73  {
74  return !memcmp( this, &orig, sizeof( MBuuid ) );
75  }

Member Data Documentation

◆ data1

unsigned moab::MBuuid::data1

uuid data storage

Definition at line 83 of file UnknownInterface.hpp.

Referenced by MBuuid().

◆ data2

unsigned short moab::MBuuid::data2

Definition at line 84 of file UnknownInterface.hpp.

Referenced by MBuuid().

◆ data3

unsigned short moab::MBuuid::data3

Definition at line 85 of file UnknownInterface.hpp.

Referenced by MBuuid().

◆ data4

unsigned char moab::MBuuid::data4[8]

Definition at line 86 of file UnknownInterface.hpp.

Referenced by MBuuid().


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