MOAB: Mesh Oriented datABase  (version 5.4.1)
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
 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 28 of file UnknownInterface.hpp.


Constructor & Destructor Documentation

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

default constructor that initializes to zero

Definition at line 31 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 36 of file UnknownInterface.hpp.

References data1, data2, data3, and data4.

    {
        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 61 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 77 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 66 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 72 of file UnknownInterface.hpp.

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

Member Data Documentation

uuid data storage

Definition at line 83 of file UnknownInterface.hpp.

Referenced by MBuuid().

unsigned short moab::MBuuid::data2

Definition at line 84 of file UnknownInterface.hpp.

Referenced by MBuuid().

unsigned short moab::MBuuid::data3

Definition at line 85 of file UnknownInterface.hpp.

Referenced by MBuuid().

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

Definition at line 86 of file UnknownInterface.hpp.

Referenced by MBuuid().

List of all members.


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