Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
jafar::kernel::IdCollectorNone< T > Class Template Reference

Forward declarations (cannot forward default parameters): More...


Detailed Description

template<typename T>
class jafar::kernel::IdCollectorNone< T >

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>

List of all members.

Public Member Functions

bool empty ()
 does the collector have free ids
get ()
 get an id
bool collect (T id)
 tries to collect the id
size ()
 number of free ids
void clear ()
 clear the free ids
defrag (T lastid)
 convert some free ids here into a decreased lastid if possible

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS