torque Torque Game Engine Documentation
TGE Version 1.5.2

IdGenerator Class Reference

#include <idGenerator.h>


Public Member Functions

 IdGenerator (U32 base, U32 numIds)
void reset ()
U32 alloc ()
void free (U32 id)
U32 numIdsUsed ()

Private Member Functions

void reclaim ()

Private Attributes

U32 mIdBlockBase
U32 mIdRangeSize
Vector< U32mPool
U32 mNextId


Constructor & Destructor Documentation

IdGenerator::IdGenerator ( U32  base,
U32  numIds 
) [inline]


Member Function Documentation

void IdGenerator::reclaim (  )  [private]

void IdGenerator::reset (  )  [inline]

U32 IdGenerator::alloc (  )  [inline]

void IdGenerator::free ( U32  id  )  [inline]

U32 IdGenerator::numIdsUsed (  )  [inline]


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen