qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
ccUniqueIDGenerator Class Reference

Unique ID generator (should be unique for the whole application instance - with plugins, etc.) More...

#include <ccObject.h>

Public Types

using Shared = QSharedPointer< ccUniqueIDGenerator >
 Shared type.
 

Public Member Functions

 ccUniqueIDGenerator ()
 Default constructor.
 
void reset ()
 Resets the unique ID.
 
unsigned fetchOne ()
 Returns a (new) unique ID.
 
unsigned getLast () const
 Returns the value of the last generated unique ID.
 
void update (unsigned ID)
 Updates the value of the last generated unique ID with the current one.
 

Static Public Attributes

static constexpr unsigned InvalidUniqueID = 0xFFFFFFFF
 
static constexpr unsigned MinUniqueID = 0x00000100
 

Protected Attributes

unsigned m_lastUniqueID
 

Detailed Description

Unique ID generator (should be unique for the whole application instance - with plugins, etc.)


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