ROSE  0.9.9.139
genUID.h
1 #ifndef GEN_UID_H
2 #define GEN_UID_H
3 
4 #ifdef THREADED
5 #include "tbb/mutex.h"
6 #endif
7 
8 // Generates unique unsigned long ids, with a user-specified minimum id
9 class genUID
10 {
11  unsigned long curUID;
12  #ifdef THREADED
13  tbb::mutex* uidAccessM;
14  #endif
15 
16  public:
17  // minimum ID defaults to 0
18  genUID();
19  // minimum ID will be minUID
20  genUID(unsigned long minUID);
21 
22  unsigned long getUID();
23 };
24 
25 #endif
Definition: genUID.h:9