#include <LOW_objectIDFactory.h>
Collaboration diagram for LOW_objectIDFactory:
Public Types | |
typedef uint32_t | objectID_t |
object ID type | |
Static Public Member Functions | |
objectID_t | getNewObjectID () |
Get a new unique object ID. | |
Static Protected Attributes | |
LOW_thread_rwlock * | __staticSyncRwlockSingleton = 0 |
LOW_platformMiscFactory::threadIdent_t | __writeLockHolder = 0 |
Private Member Functions | |
LOW_objectIDFactory () | |
Default constructor. | |
~LOW_objectIDFactory () | |
Destructor. | |
Static Private Attributes | |
objectID_t | objIDCounter = 0 |
Counter to get unique object IDs, incremented on instance creation to get individual IDs. |
This class is thread-safe.
Definition at line 32 of file LOW_objectIDFactory.h.
|
object ID type
Definition at line 42 of file LOW_objectIDFactory.h. Referenced by getNewObjectID(). |
|
Default constructor. It is private to prevent creating objects from this class as this is a static factory. Definition at line 38 of file LOW_objectIDFactory.cpp. |
|
Destructor. It is private to prevent creating objects from this class as this is a static factory. Definition at line 43 of file LOW_objectIDFactory.cpp. |
|
Get a new unique object ID. To be precise, the ID is pseudo unique as a simple counter increment is used.
Definition at line 54 of file LOW_objectIDFactory.cpp. References __LOW_SYNCHRONIZE_STATIC_WRITE__, objectID_t, and objIDCounter. |
|
Definition at line 27 of file LOW_objectIDFactory.cpp. |
|
Definition at line 27 of file LOW_objectIDFactory.cpp. |
|
Counter to get unique object IDs, incremented on instance creation to get individual IDs.
Definition at line 29 of file LOW_objectIDFactory.cpp. Referenced by getNewObjectID(). |