Class IdGenerator#

Class Documentation#

class IdGenerator#

Class used to generate ids.

Public Functions

id_t generate()#

Generate a new id.

Returns:

The newly generated id.

void reset()#

Reset the IdGenerator internal count.

Public Static Functions

static IdGenerator &singleton()#

Get the singleton instance of IdGenerator.

Returns:

The singleton instance of IdGenerator.