NVIDIA DeepStream SDK API Reference

9.2 Release
UIDGenerator Class Reference

Detailed Description

Public Member Functions

 UIDGenerator ()
 Initialize the generator with a random upper-ID prefix. More...
 
uint64_t peekNextId () const
 Return the next ID without consuming it. More...
 
uint64_t generateId ()
 Generate and consume the next unique ID. More...
 
void reset ()
 Reset the generator with a new random upper-ID prefix. More...
 
 UIDGenerator ()
 Initialize the generator with a random upper-ID prefix. More...
 
uint64_t peekNextId () const
 Return the next ID without consuming it. More...
 
uint64_t generateId ()
 Generate and consume the next unique ID. More...
 
void reset ()
 Reset the generator with a new random upper-ID prefix. More...
 

Constructor & Destructor Documentation

◆ UIDGenerator() [1/2]

UIDGenerator::UIDGenerator ( )
inline

Initialize the generator with a random upper-ID prefix.

Definition at line 174 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

References reset().

◆ UIDGenerator() [2/2]

UIDGenerator::UIDGenerator ( )
inline

Initialize the generator with a random upper-ID prefix.

Definition at line 174 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

References reset().

Member Function Documentation

◆ generateId() [1/2]

uint64_t UIDGenerator::generateId ( )
inline

Generate and consume the next unique ID.

Definition at line 186 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

◆ generateId() [2/2]

uint64_t UIDGenerator::generateId ( )
inline

Generate and consume the next unique ID.

Definition at line 186 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

◆ peekNextId() [1/2]

uint64_t UIDGenerator::peekNextId ( ) const
inline

Return the next ID without consuming it.

Definition at line 180 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

◆ peekNextId() [2/2]

uint64_t UIDGenerator::peekNextId ( ) const
inline

Return the next ID without consuming it.

Definition at line 180 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

◆ reset() [1/2]

void UIDGenerator::reset ( )
inline

Reset the generator with a new random upper-ID prefix.

Falls back to a Mersenne Twister seed when the system generator does not fill the seed.

Get a random seed from the OS entropy device.

Use the 64-bit Mersenne Twister 19937 generator.

Define the distribution, by default it goes from 0 to MAX(unsigned long long).

Puts a random value in the upper 32 bits and leaves the lower 32 bits to increment.

Definition at line 192 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.

Referenced by NvTrajectoryManager::resetIDs(), and UIDGenerator().

◆ reset() [2/2]

void UIDGenerator::reset ( )
inline

Reset the generator with a new random upper-ID prefix.

Falls back to a Mersenne Twister seed when the system generator does not fill the seed.

Get a random seed from the OS entropy device.

Use the 64-bit Mersenne Twister 19937 generator.

Define the distribution, by default it goes from 0 to MAX(unsigned long long).

Puts a random value in the upper 32 bits and leaves the lower 32 bits to increment.

Definition at line 192 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.


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