Equalizer  1.2.1
Public Member Functions
co::base::UUID Class Reference

Provides a universally unique identifier. More...

#include <uuid.h>

+ Inheritance diagram for co::base::UUID:
+ Collaboration diagram for co::base::UUID:

List of all members.

Public Member Functions

 UUID (const bool generate=false)
 Construct a new universally unique identifier.
 UUID (const uint64_t high_, const uint64_t low_)
 Construct a new universally unique identifier.
 UUID (const uint128_t &from)
 Construct a new universally unique identifier from an unsigned 128 bit integer value.
UUIDoperator= (const std::string &from)
 Assign another UUID from a string representation.
bool isGenerated () const

Detailed Description

Provides a universally unique identifier.

Not to be subclassed.

Definition at line 34 of file uuid.h.


Constructor & Destructor Documentation

co::base::UUID::UUID ( const bool  generate = false) [inline, explicit]

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.

Version:
1.0

Definition at line 44 of file uuid.h.

References co::base::RNG::get(), co::base::uint128_t::high(), and co::base::uint128_t::low().

+ Here is the call graph for this function:

co::base::UUID::UUID ( const uint64_t  high_,
const uint64_t  low_ 
) [inline]

Construct a new universally unique identifier.

Version:
1.0

Definition at line 58 of file uuid.h.

co::base::UUID::UUID ( const uint128_t from) [inline]

Construct a new universally unique identifier from an unsigned 128 bit integer value.

Version:
1.0

Definition at line 66 of file uuid.h.


Member Function Documentation

bool co::base::UUID::isGenerated ( ) const [inline]
Returns:
true if the UUID was generated.

Definition at line 73 of file uuid.h.

References co::base::uint128_t::high().

+ Here is the call graph for this function:

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

Assign another UUID from a string representation.

Version:
1.0

Reimplemented from co::base::uint128_t.

Definition at line 69 of file uuid.h.


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 2012 15:44:34 for Equalizer 1.2.1 by  doxygen 1.8.0