158 static void Destroy(T* p_obj) {
delete p_obj; }
254 m_match = m_list->m_first;
255 return m_match !=
NULL;
263 m_match = m_list->m_last;
264 return m_match !=
NULL;
[AI] Template class for a generic collection, providing fundamental storage and comparison facilities...
MxU32 m_count
[AI] Number of elements currently stored in the collection.
void SetDestroy(void(*p_customDestructor)(T))
[AI] Assigns a custom destructor function to be used for elements of this collection.
[AI] Base virtual class for all Mindscape engine (Mx) objects.
[AI] Forward declaration for MxListCursor.
void Prepend(T p_newobj)
[AI]
MxBool Last(T &p_obj)
[AI]
MxBool Current(T &p_obj)
[AI]
void SetValue(T p_obj)
[AI]
MxBool Prev(T &p_obj)
[AI]
MxBool Next(T &p_obj)
[AI]
MxListCursor(MxList< T > *p_list)
[AI]
MxBool First(T &p_obj)
[AI]
void SetNext(MxListEntry *p_next)
[AI]
MxListEntry()
[AI] Default constructor.
MxListEntry * GetPrev()
[AI]
MxListEntry(T p_obj, MxListEntry *p_prev, MxListEntry *p_next)
[AI]
void SetPrev(MxListEntry *p_prev)
[AI]
void SetValue(T p_obj)
[AI]
MxListEntry * GetNext()
[AI]
MxListEntry(T p_obj, MxListEntry *p_prev)
[AI]
[AI] Forward declaration for MxList.
void Prepend(T p_obj)
[AI]
~MxList() override
[AI] Destructor. Deletes all entries in the list and manages resource ownership. [AI]
MxList()
[AI] Constructor. Initializes the list pointers to null (empty list). [AI]
MxListEntry< T > * m_first
[AI] Pointer to the first entry in the list. [AI]
MxListEntry< T > * m_last
[AI] Pointer to the last entry in the list. [AI]
MxListEntry< T > * InsertEntry(T, MxListEntry< T > *, MxListEntry< T > *)
[AI]
void DeleteEntry(MxListEntry< T > *)
[AI]
MxU32 GetNumElements()
[AI]
MxPtrListCursor(MxPtrList< T > *p_list)
[AI]
MxPtrList(MxBool p_ownership)
[AI]
void SetOwnership(MxBool p_ownership)
[AI]
static void Destroy(T *p_obj)
[AI]
#define NULL
[AI] Null pointer value (C/C++ semantics).