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 >
static auto score::random_id_generator::getNextId ( const Vector &  ids)
inlinestatic

getNextId

Parameters
idsA vector of ids
Returns
A new id not in the vector.

◆ getRandomId()

int32_t score::random_id_generator::getRandomId ( )
static

getNextId

Returns
a random int32

The documentation for this struct was generated from the following files: