walberla::RandomUUID Class Reference

Detailed Description

Replacement for boost::uuids::uuid and boost::uuids::random_generator.

Uses two 64 bit random numbers to create a 128 bit uuid.

#include <RandomUUID.h>

Public Types

using UIntType = uint64_t

Public Member Functions

 RandomUUID ()
 RandomUUID (const UIntType a, const UIntType b)
std::string toString () const
 returns a string representation of the uuid More...
UIntType getFirstUInt () const
UIntType getSecondUInt () const

Private Attributes

UIntType a_
 first part of the uuid More...
UIntType b_
 second part of the uuid More...


bool operator== (const RandomUUID &lhs, const RandomUUID &rhs)
bool operator!= (const RandomUUID &lhs, const RandomUUID &rhs)

Member Typedef Documentation

◆ UIntType

Constructor & Destructor Documentation

◆ RandomUUID() [1/2]

walberla::RandomUUID::RandomUUID ( )

◆ RandomUUID() [2/2]

walberla::RandomUUID::RandomUUID ( const UIntType  a,
const UIntType  b 

Member Function Documentation

◆ getFirstUInt()

UIntType walberla::RandomUUID::getFirstUInt ( ) const

◆ getSecondUInt()

UIntType walberla::RandomUUID::getSecondUInt ( ) const

◆ toString()

std::string walberla::RandomUUID::toString ( ) const

returns a string representation of the uuid

format: hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const RandomUUID lhs,
const RandomUUID rhs 

◆ operator==

bool operator== ( const RandomUUID lhs,
const RandomUUID rhs 

Member Data Documentation

◆ a_

UIntType walberla::RandomUUID::a_

first part of the uuid

◆ b_

UIntType walberla::RandomUUID::b_

second part of the uuid

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