Lunchbox  1.4.0
Public Member Functions
lunchbox::UUID Class Reference

Provides a universally unique identifier. More...

#include <uuid.h>

+ Inheritance diagram for lunchbox::UUID:
+ Collaboration diagram for lunchbox::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 30 of file uuid.h.


Constructor & Destructor Documentation

lunchbox::UUID::UUID ( const bool  generate = false) [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
lunchbox::UUID::UUID ( const uint64_t  high_,
const uint64_t  low_ 
) [inline]

Construct a new universally unique identifier.

Version:
1.0

Definition at line 46 of file uuid.h.

lunchbox::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 54 of file uuid.h.


Member Function Documentation

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

Definition at line 61 of file uuid.h.

References lunchbox::uint128_t::high().

+ Here is the call graph for this function:

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

Assign another UUID from a string representation.

Version:
1.0

Reimplemented from lunchbox::uint128_t.

Definition at line 57 of file uuid.h.


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