|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Thread-safe Meyers singleton for generating unique object IDs. More...
#include "sim_id.h"
Public Member Functions | |
| SimId | generateId (ObjectType type) |
| Generate a unique SimId for a given object type. | |
| SimId | generateDebugId () |
| Generate a debug SimId. | |
Static Public Member Functions | |
| static SimIdGenerator & | instance () |
| Get the singleton instance of SimIdGenerator. | |
| static ObjectType | getType (const SimId id) |
| Extract object type from SimId. | |
| static uint64_t | getCounter (const SimId id) |
| Extract counter from SimId. | |
Thread-safe Meyers singleton for generating unique object IDs.
| SimId SimIdGenerator::generateDebugId | ( | ) |
Generate a debug SimId.
Definition at line 84 of file sim_id.h.
References Debug.
| SimId SimIdGenerator::generateId | ( | ObjectType | type | ) |
Generate a unique SimId for a given object type.
| type | The ObjectType for which to generate the ID. |
| std::overflow_error | if the 48-bit counter overflows. |
Definition at line 60 of file sim_id.h.
References Debug.
Referenced by serial::xml_parser_utils::assign_id_from_attribute().
Here is the caller graph for this function:
|
static |
|
static |
|
static |
Get the singleton instance of SimIdGenerator.
Definition at line 48 of file sim_id.h.
References instance().
Referenced by serial::xml_parser_utils::assign_id_from_attribute(), and instance().
Here is the call graph for this function:
Here is the caller graph for this function: