UniqueIdAllocator

Inheritance:

Methods of UniqueIdAllocator:

allocate
unsigned long int UniqueIdAllocator::allocate(void);

Description: Receive an id between _min and _max (that were passed to the constructor). IndexEnd is returned if no ids are available.

fractionUsed
float UniqueIdAllocator::fraction_used(void) const;

Description: return the decimal fraction of the pool that is used. The range is 0 to 1.0 (e.g. 75% would be 0.75).

free
void UniqueIdAllocator::free(unsigned long int index);

Description: Free an allocated index (index must be between _min and _max that were passed to the constructor).

output
void UniqueIdAllocator::output(ostream &os, bool verbose = (0)) const;

Description: ...intended for debugging only.