Generation of unique IDs in MPI environments.
The UniqueID class is responsible for the generation of unique system IDs even during an MPI parallel execution. The unique ID is composed from the number of locally generated objects of type T and the rank of the local MPI process.
#include <UniqueID.h>
Static Public Member Functions | |
Utility functions | |
static id_t | create () |
Generates a unique ID. More... | |
static id_t | createGlobal () |
Generates an ID which is the same on all processes but unique on each process. More... | |
static id_t | invalidID () |
Returns an invalid ID. More... | |
static id_t | count () |
static id_t | globalCount () |
Static Private Attributes | |
Member variables | |
static id_t | counter_ |
System ID counter. More... | |
static id_t | globalCounter_ |
Global system ID counter. More... | |
Additional Inherited Members | |
Private Member Functions inherited from walberla::NonCreateable | |
NonCreateable ()=delete | |
|
inlinestatic |
|
inlinestatic |
Generates a unique ID.
|
inlinestatic |
Generates an ID which is the same on all processes but unique on each process.
|
inlinestatic |
|
inlinestatic |
Returns an invalid ID.
|
staticprivate |
System ID counter.
|
staticprivate |
Global system ID counter.