Class to generate unique IDs.
Definition at line 170 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.
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... | |
|
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().
|
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().
|
inline |
Generate and consume the next unique ID.
Definition at line 186 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.
|
inline |
Generate and consume the next unique ID.
Definition at line 186 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.
|
inline |
Return the next ID without consuming it.
Definition at line 180 of file sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.
|
inline |
Return the next ID without consuming it.
Definition at line 180 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/TrajectoryManager/NvTrajectoryManager.hpp.
|
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().
|
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.