eq::base::UUID Class Reference

Provides a universally unique identifier. More...

#include <uuid.h>

Collaboration diagram for eq::base::UUID:
Collaboration graph
[legend]

List of all members.

Classes

struct  Data
 Opaque data type, used for network transport. More...

Public Member Functions

 UUID (const bool generate=false)
 Construct a new universally unique identifier.
 UUID (const UUID &from)
 Create a copy of a universally unique identifier.
 UUID (const Data &from)
 Create a copy of a universally unique identifier.
void getData (Data &data) const
 Get the raw data for network transport.
UUIDoperator= (const UUID &from)
 Assign another universally unique identifier.
UUIDoperator= (const std::string &from)
 Assign another UUID from a string representation.
bool operator== (const UUID &rhs) const
bool operator!= (const UUID &rhs) const
bool operator< (const UUID &rhs) const
bool operator> (const UUID &rhs) const
bool operator! () const
void convertToNetwork ()
 Convert this UUID for network transport.
void convertToHost ()
 Convert this UUID from network transport.

Static Public Attributes

static const UUID ZERO
 The NULL UUID.

Friends

struct stde::hash< eq::base::UUID >
std::ostream & operator<< (std::ostream &os, const UUID &id)

Detailed Description

Provides a universally unique identifier.

Not to be subclassed.

Definition at line 46 of file uuid.h.


Constructor & Destructor Documentation

eq::base::UUID::UUID ( const bool  generate = false  )  [inline]

Construct a new universally unique identifier.

If generate is set to true, a new UUID is allocated. Otherwise the UUID is cleared, i.e., it is equal to UUID::ZERO.

Definition at line 133 of file uuid.h.

eq::base::UUID::UUID ( const UUID from  )  [inline]

Create a copy of a universally unique identifier.

Version:
1.0

Definition at line 137 of file uuid.h.

eq::base::UUID::UUID ( const Data from  )  [inline]

Create a copy of a universally unique identifier.

Version:
1.0

Definition at line 140 of file uuid.h.


Member Function Documentation

void eq::base::UUID::getData ( Data data  )  const [inline]

Get the raw data for network transport.

Version:
1.0

Definition at line 143 of file uuid.h.

UUID& eq::base::UUID::operator= ( const UUID from  )  [inline]

Assign another universally unique identifier.

Version:
1.0

Definition at line 146 of file uuid.h.

UUID& eq::base::UUID::operator= ( const std::string &  from  )  [inline]

Assign another UUID from a string representation.

Version:
1.0

Definition at line 153 of file uuid.h.

bool eq::base::UUID::operator== ( const UUID rhs  )  const [inline]
Returns:
true if the UUIDs are equal, false if not.
Version:
1.0

Definition at line 160 of file uuid.h.

bool eq::base::UUID::operator!= ( const UUID rhs  )  const [inline]
Returns:
true if the UUIDs are different, false otherwise.
Version:
1.0

Definition at line 167 of file uuid.h.

bool eq::base::UUID::operator< ( const UUID rhs  )  const [inline]
Returns:
true if this UUID is smaller than the RHS UUID.
Version:
1.0

Definition at line 174 of file uuid.h.

bool eq::base::UUID::operator> ( const UUID rhs  )  const [inline]
Returns:
true if this UUID is bigger than the rhs UUID.
Version:
1.0

Definition at line 181 of file uuid.h.

bool eq::base::UUID::operator! (  )  const [inline]
Returns:
true if this UUID is set, i.e., it is not UUID::ZERO.
Version:
1.0

Definition at line 188 of file uuid.h.

void eq::base::UUID::convertToNetwork (  )  [inline]

Convert this UUID for network transport.

Version:
1.0

Definition at line 191 of file uuid.h.

Referenced by eq::net::Node::_connect(), and eq::net::DataOStream::operator<<().

Here is the caller graph for this function:

void eq::base::UUID::convertToHost (  )  [inline]

Convert this UUID from network transport.

Version:
1.0

Definition at line 194 of file uuid.h.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:08:33 2010 for Equalizer 0.9.1 by  doxygen 1.6.1