Jafar
|
This class allows to create an unique id. More...
This class allows to create an unique id.
T | the id storage type |
IdCollector | the id collector type |
Definition at line 101 of file IdFactory.hpp.
#include <IdFactory.hpp>
Public Types | |
typedef T | storage_t |
Public Member Functions | |
T | getId () |
Call this to get an unique id, starting from 1, 0 means overflow. | |
bool | releaseId (T id) |
Call this when you want to stop using an id. | |
void | reset () |
Call this when you want to reset the factory without destroying it. | |
T | countUsed () |
Call this to get the number of ids currently used. | |
T | countCollected () |
Call this to get the number of ids currently collected. | |
Private Attributes | |
T | m_lastId |
IdCollector< T > | freed |
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |