luna engine
software engine
Loading...
Searching...
No Matches
luna::uuid Class Reference

a general purpose uuid class with a maximum number of 2^64 uuid's the uuid class does not check for duplicates! More...

#include <uuid.h>

Public Member Functions

 uuid ()
 creates/generates a uuid. More...
 
 uuid (uint64_t uuid)
 generates a uuid from a uint64_t. More...
 
uint64_t getId ()
 returns the uuid as uint64_t. More...
 
 operator uint64_t ()
 
 operator std::string ()
 

Private Attributes

uint64_t _uuid
 

Detailed Description

a general purpose uuid class with a maximum number of 2^64 uuid's the uuid class does not check for duplicates!

Constructor & Destructor Documentation

◆ uuid() [1/2]

luna::uuid::uuid ( )

creates/generates a uuid.

◆ uuid() [2/2]

luna::uuid::uuid ( uint64_t  uuid)

generates a uuid from a uint64_t.

Parameters
uuid

Member Function Documentation

◆ getId()

uint64_t luna::uuid::getId ( )
inline

returns the uuid as uint64_t.

◆ operator std::string()

luna::uuid::operator std::string ( )
inline

◆ operator uint64_t()

luna::uuid::operator uint64_t ( )
inline

Member Data Documentation

◆ _uuid

uint64_t luna::uuid::_uuid
private

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