Torque2D Reference
Loading...
Searching...
No Matches
SparseArray< T > Class Template Reference

#include <sparseArray.h>

Inheritance diagram for SparseArray< T >:

Classes

struct  Node

Public Member Functions

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

Protected Attributes

U32 mModulus
NodemSentryTables

Constructor & Destructor Documentation

◆ SparseArray()

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

◆ ~SparseArray()

template<class T>
~SparseArray ( )
inline

Member Function Documentation

◆ clearTables()

template<class T>
void clearTables ( )
inline

◆ insert()

template<class T>
void insert ( T * pObject,
U32 key )
inline

◆ remove()

template<class T>
T * remove ( U32 key)
inline

◆ retrieve()

template<class T>
T * retrieve ( U32 key)
inline

Member Data Documentation

◆ mModulus

template<class T>
U32 mModulus
protected

◆ mSentryTables

template<class T>
Node* mSentryTables
protected

The documentation for this class was generated from the following file: