#include <InstanceId.h>

Collaboration diagram for ScopedId:

Public Member Functions

 ScopedId ()
 
 ScopedId (const char *s)
 
 ScopedId (const char *s, uint64_t v)
 

Public Attributes

const char * scope
 
uint64_t value
 

Detailed Description

Represents an InstanceId<C> value independent from its owner class C. These "detached" IDs can be stored by and exchanged among C-unaware users at the price of storing a short scope c-string (that InstanceIds hard-code instead) and, in some cases, using more bits/space than InstanceId<C>::value uses.

Definition at line 18 of file InstanceId.h.

Constructor & Destructor Documentation

◆ ScopedId() [1/3]

ScopedId::ScopedId ( )
inline

Definition at line 21 of file InstanceId.h.

◆ ScopedId() [2/3]

ScopedId::ScopedId ( const char *  s)
inlineexplicit

Definition at line 22 of file InstanceId.h.

◆ ScopedId() [3/3]

ScopedId::ScopedId ( const char *  s,
uint64_t  v 
)
inline

Definition at line 24 of file InstanceId.h.

Member Data Documentation

◆ scope

const char* ScopedId::scope

either the prefix() of the InstanceId object that we were detached from or, for 0 values, some other description (with endless lifetime) or nil

Definition at line 28 of file InstanceId.h.

◆ value

uint64_t ScopedId::value

either the value of the InstanceId object that we were detached from or, if our creator did not know the exact value, zero

Definition at line 32 of file InstanceId.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors