torque Torque Game Engine Documentation
TGE Version 1.5.2

SparseArray< T > Class Template Reference

#include <tSparseArray.h>


template<class T> class SparseArray< T >


Public Member Functions

 SparseArray (const U32 modulusSize=64)
 ~SparseArray ()
void insert (T *pObject, U32 key)
T * remove (U32 key)
T * retreive (U32 key)

Protected Member Functions

void clearTables ()

Protected Attributes

U32 mModulus
NodemSentryTables

Data Structures

struct  Node

Constructor & Destructor Documentation

template<class T>
SparseArray< T >::SparseArray ( const U32  modulusSize = 64  )  [inline]

template<class T>
SparseArray< T >::~SparseArray (  )  [inline]


Member Function Documentation

template<class T>
void SparseArray< T >::clearTables (  )  [inline, protected]

template<class T>
void SparseArray< T >::insert ( T *  pObject,
U32  key 
) [inline]

template<class T>
T * SparseArray< T >::remove ( U32  key  )  [inline]

template<class T>
T * SparseArray< T >::retreive ( U32  key  )  [inline]


Field Documentation

template<class T>
U32 SparseArray< T >::mModulus [protected]

template<class T>
Node* SparseArray< T >::mSentryTables [protected]




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