Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UniqueIdAllocator Class Reference

#include <uniqueIdAllocator.h>

List of all members.

Static Public Attributes

const U32 IndexEnd = (U32)-1

Protected Attributes

U32_table
U32 _min
U32 _max
U32 _next_free
U32 _last_free
U32 _size
U32 _free

Static Protected Attributes

const U32 IndexAllocated = (U32)-2

Private Member Functions

 ~UniqueIdAllocator ()
U32 allocate ()
void free (U32 index)
float percent_used () const
void output (ostream &os, bool verbose=false) const

Private Attributes

PUBLISHED __pad0__: UniqueIdAllocator(U32 min=0
PUBLISHED U32 max = 20)


Constructor & Destructor Documentation

UniqueIdAllocator::~UniqueIdAllocator  )  [private]
 

Definition at line 78 of file uniqueIdAllocator.cxx.

References _table, and uniqueIdAllocator_debug.


Member Function Documentation

U32 UniqueIdAllocator::allocate  )  [private]
 

Definition at line 92 of file uniqueIdAllocator.cxx.

References _free, _min, _next_free, _table, id, IndexAllocated, IndexEnd, U32, uniqueIdAllocator_debug, and uniqueIdAllocator_warning.

void UniqueIdAllocator::free U32  index  )  [private]
 

Definition at line 116 of file uniqueIdAllocator.cxx.

References _free, _last_free, _max, _min, _next_free, _table, index, IndexAllocated, IndexEnd, and uniqueIdAllocator_debug.

void UniqueIdAllocator::output ostream &  os,
bool  verbose = false
const [private]
 

Definition at line 151 of file uniqueIdAllocator.cxx.

References _free, _last_free, _next_free, _size, _table, and U32.

float UniqueIdAllocator::percent_used  )  const [private]
 

Definition at line 140 of file uniqueIdAllocator.cxx.

References _free, and _size.


Member Data Documentation

PUBLISHED UniqueIdAllocator::__pad0__ [private]
 

Definition at line 52 of file uniqueIdAllocator.h.

U32 UniqueIdAllocator::_free [protected]
 

Definition at line 70 of file uniqueIdAllocator.h.

Referenced by allocate(), free(), output(), and percent_used().

U32 UniqueIdAllocator::_last_free [protected]
 

Definition at line 68 of file uniqueIdAllocator.h.

Referenced by free(), and output().

U32 UniqueIdAllocator::_max [protected]
 

Definition at line 66 of file uniqueIdAllocator.h.

Referenced by free().

U32 UniqueIdAllocator::_min [protected]
 

Definition at line 65 of file uniqueIdAllocator.h.

Referenced by allocate(), and free().

U32 UniqueIdAllocator::_next_free [protected]
 

Definition at line 67 of file uniqueIdAllocator.h.

Referenced by allocate(), free(), and output().

U32 UniqueIdAllocator::_size [protected]
 

Definition at line 69 of file uniqueIdAllocator.h.

Referenced by output(), and percent_used().

U32* UniqueIdAllocator::_table [protected]
 

Definition at line 64 of file uniqueIdAllocator.h.

Referenced by allocate(), free(), output(), and ~UniqueIdAllocator().

const U32 UniqueIdAllocator::IndexAllocated = (U32)-2 [static, protected]
 

Definition at line 63 of file uniqueIdAllocator.h.

Referenced by allocate(), and free().

const U32 UniqueIdAllocator::IndexEnd = (U32)-1 [static]
 

Definition at line 60 of file uniqueIdAllocator.h.

Referenced by allocate(), and free().

PUBLISHED U32 UniqueIdAllocator::max = 20) [private]
 

Definition at line 52 of file uniqueIdAllocator.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:58 2003 for Panda by doxygen1.3