![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
A simple pool of identificators of the given type. More...
#include "idpool.h"
Public Member Functions | |
void | SetID (T id) |
Forcefully sets the current ID. More... | |
void | FreeID (T) |
Frees the id. More... | |
QByteArray | SaveState () const |
Saves the state of this pool. More... | |
void | LoadState (const QByteArray &state) |
Recovers the state of this pool. More... | |
Public Attributes | |
__pad0__: CurrentID_ (id) { } virtual ~IDPool () { } T GetID () { return ++CurrentID_ | |
Creates a pool with the given initial value. More... | |
A simple pool of identificators of the given type.
This class holds a pool of identificators of the given type T. It is very simple and produces consecutive IDs, this T should support operator++()
.
|
inline |
|
inline |
Recovers the state of this pool.
[in] | state | The state of this pool obtained from SaveState(). |
|
inline |
|
inline |
LeechCraft::Util::IDPool< T >::__pad0__ |