Jafar
|
Forward declarations (cannot forward default parameters): More...
Forward declarations (cannot forward default parameters):
template<typename> class IdCollectorNone; template<typename> class IdCollectorList; template<typename> class IdCollectorSet; template<typename, template<typename> class> class IdFactory;
This none collector only collects the last id, so it can overflow even if not all ids are used Memory complexity: constant Time complexity: constant
Definition at line 31 of file IdFactory.hpp.
#include <IdFactory.hpp>
Public Member Functions | |
bool | empty () |
does the collector have free ids | |
T | get () |
get an id | |
bool | collect (T id) |
tries to collect the id | |
T | size () |
number of free ids | |
void | clear () |
clear the free ids | |
T | defrag (T lastid) |
convert some free ids here into a decreased lastid if possible |
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |