OpenMS
2.6.0
|
A generator for unique ids. More...
#include <OpenMS/CONCEPT/UniqueIdGenerator.h>
Static Public Member Functions | |
static UInt64 | getUniqueId () |
Returns a new unique id. More... | |
static void | setSeed (const UInt64) |
Initializes random generator using the given value. More... | |
static UInt64 | getSeed () |
Get the seed. More... | |
Protected Member Functions | |
UniqueIdGenerator () | |
~UniqueIdGenerator () | |
Private Member Functions | |
void | init_ () |
UniqueIdGenerator (const UniqueIdGenerator &) | |
Static Private Member Functions | |
static UniqueIdGenerator & | getInstance_ () |
Static Private Attributes | |
static UInt64 | seed_ |
static UniqueIdGenerator * | instance_ |
static boost::mt19937_64 * | rng_ |
static boost::uniform_int< UInt64 > * | dist_ |
A generator for unique ids.
The unique ids are 64-bit random unsigned random integers. The class is implemented as a singleton. The random generator is implemented using boost::random.
|
protected |
|
protected |
|
private |
|
staticprivate |
|
static |
Get the seed.
|
static |
Returns a new unique id.
Referenced by UniqueIdInterface::ensureUniqueId(), and UniqueIdInterface::setUniqueId().
|
private |
|
static |
Initializes random generator using the given value.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |