Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cUID Class Reference

#include <cUID.h>

Public Member Functions

 cUID (UID_t u) noexcept
 
bool isValidUID () const noexcept
 
UID_t get_HashCode () const noexcept
 
UID_t get_UIDValue () const noexcept
 
 operator UID_t () const noexcept
 

Static Public Member Functions

static bool IsValidUID (UID_t uid) noexcept
 

Static Public Attributes

static const UID_t k_CLEAR = ((UID_t)0)
 Hard coded UID_t values. More...
 
static const UID_t k_BAD = ((UID_t)UINT_MAX)
 not valid assigned UID. More...
 
static const UID_t k_ROOT = ((UID_t)0x80000000)
 special hard coded UID for the root cXObject. More...
 
static const UID_t k_CONTEXT = ((UID_t)0)
 special hard coded UID for global cScriptContextObj. k_HASHCODE_CLEAR More...
 

Protected Attributes

UID_t m_nUIDValue
 

Detailed Description

a single id in a managed set of id's Base for cUIDClient and cUIDServer for private sub ranges cUIDRangeMask

Constructor & Destructor Documentation

◆ cUID()

GrayLib::cUID::cUID ( UID_t  u)
inlinenoexcept

Member Function Documentation

◆ get_HashCode()

UID_t GrayLib::cUID::get_HashCode ( ) const
inlinenoexcept

◆ get_UIDValue()

UID_t GrayLib::cUID::get_UIDValue ( ) const
inlinenoexcept

◆ isValidUID()

bool GrayLib::cUID::isValidUID ( ) const
inlinenoexcept

◆ IsValidUID()

static bool GrayLib::cUID::IsValidUID ( UID_t  uid)
inlinestaticnoexcept

assume k_CONTEXT has already been translated.

◆ operator UID_t()

GrayLib::cUID::operator UID_t ( ) const
inlinenoexcept

Member Data Documentation

◆ k_BAD

const UID_t GrayLib::cUID::k_BAD = ((UID_t)UINT_MAX)
static

not valid assigned UID.

◆ k_CLEAR

const UID_t GrayLib::cUID::k_CLEAR = ((UID_t)0)
static

Hard coded UID_t values.

not assigned UID. k_HASHCODE_CLEAR

◆ k_CONTEXT

const UID_t GrayLib::cUID::k_CONTEXT = ((UID_t)0)
static

special hard coded UID for global cScriptContextObj. k_HASHCODE_CLEAR

◆ k_ROOT

const UID_t GrayLib::cUID::k_ROOT = ((UID_t)0x80000000)
static

special hard coded UID for the root cXObject.

◆ m_nUIDValue

UID_t GrayLib::cUID::m_nUIDValue
protected
Todo:
Get/Put string. UID_t is usually a hex string starting with 0.

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