#include <UIDGenerator.h>
Public Types | |
| typedef boost::uintmax_t | UID |
| Let the counter be the maximum-sized unsigned integer available. | |
Public Member Functions | |
| UIDGenerator () | |
| Creates a new UIDGenerator with an initial ID of 0. | |
| UID const | getNextID () |
| Retreives the next ID and increments the ID. | |
Note that the numbers generated are not globally unique. Two UIDGenerators may return the same IDs.
The counter is an implementation-defined maximum width integer. This is typically 64 bits, yielding a max value of 18446744073709551615. If more identifiers are needed, multiple UIDGenerators could be used together.
UIDGenerators are noncopyable.
| typedef boost::uintmax_t PWToolBox::UIDGenerator::UID |
Let the counter be the maximum-sized unsigned integer available.
| PWToolBox::UIDGenerator::UIDGenerator | ( | ) | [inline] |
Creates a new UIDGenerator with an initial ID of 0.
| UID const PWToolBox::UIDGenerator::getNextID | ( | ) | [inline] |
Retreives the next ID and increments the ID.
1.5.1