moab
moab::MBuuid Struct Reference

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

#include <UnknownInterface.hpp>

List of all members.

Public Member Functions

 MBuuid ()
 default constructor that initializes to zero
 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
 MBuuid (const MBuuid &mdbuuid)
 copy constructor
MBuuidoperator= (const MBuuid &orig)
 sets this uuid equal to another one
bool operator== (const MBuuid &orig) const
 returns whether two uuid's are equal
bool operator!= (const MBuuid &orig) const
 returns whether two uuid's are not equal

Public Attributes

unsigned data1
 uuid data storage
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 27 of file UnknownInterface.hpp.


Constructor & Destructor Documentation

moab::MBuuid::MBuuid ( ) [inline]

default constructor that initializes to zero

Definition at line 30 of file UnknownInterface.hpp.

   {
      memset( this, 0, sizeof(MBuuid) );
   }
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 35 of file UnknownInterface.hpp.

   {
      data1 = l;
      data2 = w1;
      data3 = w2;
      data4[0] = b1;
      data4[1] = b2;
      data4[2] = b3;
      data4[3] = b4;
      data4[4] = b5;
      data4[5] = b6;
      data4[6] = b7;
      data4[7] = b8;
   }
moab::MBuuid::MBuuid ( const MBuuid mdbuuid) [inline]

copy constructor

Definition at line 53 of file UnknownInterface.hpp.

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

Member Function Documentation

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

returns whether two uuid's are not equal

Definition at line 69 of file UnknownInterface.hpp.

   {
      return!(*this == orig);
   }
MBuuid& moab::MBuuid::operator= ( const MBuuid orig) [inline]

sets this uuid equal to another one

Definition at line 58 of file UnknownInterface.hpp.

   {
      memcpy( this, &orig, sizeof(MBuuid));
      return *this;
   }
bool moab::MBuuid::operator== ( const MBuuid orig) const [inline]

returns whether two uuid's are equal

Definition at line 64 of file UnknownInterface.hpp.

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

Member Data Documentation

uuid data storage

Definition at line 75 of file UnknownInterface.hpp.

unsigned short moab::MBuuid::data2

Definition at line 76 of file UnknownInterface.hpp.

unsigned short moab::MBuuid::data3

Definition at line 77 of file UnknownInterface.hpp.

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

Definition at line 78 of file UnknownInterface.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines