75 QDataStream ostr (&result, QIODevice::WriteOnly);
93 QDataStream istr (state);
99 qWarning () << Q_FUNC_INFO
102 <<
", not restoring state.";
QByteArray SaveState() const
Saves the state of this pool.
T GetID()
Returns next ID.
void FreeID(T id)
Frees the id.
void SetID(T id)
Forcefully sets the current ID.
void LoadState(const QByteArray &state)
Recovers the state of this pool.
IDPool(const T &id=T())
Creates a pool with the given initial value.