PTLib
Version 2.18.8
|
This class generates unique numerical "handles". More...
#include <id_generator.h>
Public Types | |
typedef unsigned int | Handle |
Public Member Functions | |
PIdGenerator () | |
~PIdGenerator () | |
Handle | Create () |
void | Release (Handle id) |
bool | IsValid (Handle id) const |
Static Public Attributes | |
static const Handle | Invalid |
This class generates unique numerical "handles".
This makes efforts to be global static constrictor/destructor and thread safe in it's operations.
typedef unsigned int PIdGenerator::Handle |
PIdGenerator::PIdGenerator | ( | ) |
PIdGenerator::~PIdGenerator | ( | ) |
Handle PIdGenerator::Create | ( | ) |
bool PIdGenerator::IsValid | ( | Handle | id | ) | const |
void PIdGenerator::Release | ( | Handle | id | ) |
|
static |