score::random_id_generator Struct Reference
Generates random identifiers for new objects. More...
Detailed Description
Generates random identifiers for new objects.
Static Public Member Functions | |
static int32_t | getRandomId () |
getNextId More... | |
static int32_t | getFirstId () |
template<typename Vector > | |
static auto | getNextId (const Vector &ids) |
getNextId More... | |
Member Function Documentation
◆ getNextId()
template<typename Vector >
|
inlinestatic |
getNextId
- Parameters
-
ids A vector of ids
- Returns
- A new id not in the vector.
◆ getRandomId()
|
static |
getNextId
- Returns
- a random int32
The documentation for this struct was generated from the following files:
- IdentifierGeneration.hpp
- IdentifierGeneration.cpp