Mount Fuji Engine  0.8b
Public Member Functions
MFPtrListDL< T > Class Template Reference

Dead/Live Pointer List. More...

Public Member Functions

void Init (const char *pGroupName, uint32 maxElements, uint32 elementSize=sizeof(T), void *pMem=NULL)
 Initialise a pointer list. More...
 
void Deinit ()
 Deinitialise a pointer list. More...
 
T * Create ()
 Create a new item. More...
 
void Destroy (T *p)
 Destroy an item in the list. More...
 
void Destroy (T **p)
 Destroy an item in the list. More...
 
T ** Begin ()
 Get an iterator pointing to the start of the list. More...
 
T ** Find (T *p)
 Find an item in the list. More...
 
void Swap (T **p1, T **p2)
 Swap 2 items placement in the list. More...
 
void Clear ()
 Clear the list. More...
 
int GetLength ()
 Get the length of the list. More...
 
int GetMaxElements ()
 Get the maximum length of the list. More...
 
bool IsFull ()
 Check if the list is full. More...
 
bool IsEmpty ()
 Check if the list is empty. More...
 
T ** BeginDead ()
 Get the start of the dead item list. More...
 

Detailed Description

template<class T>
class MFPtrListDL< T >

Allocates and maintains a list of pointers to objects in no real coherant order.


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