mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-02 21:21:16 +00:00
Add template compare annotations for MxList instances
This commit is contained in:
parent
104a509c13
commit
ff0be2e459
@ -25,4 +25,13 @@ class MxDSActionList : public MxList<MxDSAction>
|
||||
|
||||
typedef MxListCursorChild<MxDSAction> MxDSActionListCursor;
|
||||
|
||||
// OFFSET: LEGO1 0x100c9d20 TEMPLATE
|
||||
// MxListParent<MxDSAction>::Destroy
|
||||
|
||||
// OFFSET: LEGO1 0x100c9cd0 TEMPLATE
|
||||
// MxListParent<MxDSAction>::~MxListParent<MxDSAction>
|
||||
|
||||
// OFFSET: LEGO1 0x100c9d30 TEMPLATE
|
||||
// MxList<MxDSAction>::~MxList<MxDSAction>
|
||||
|
||||
#endif // MXDSACTIONLIST_H
|
||||
|
||||
@ -31,15 +31,11 @@ class MxListParent : public MxCore
|
||||
m_count = 0;
|
||||
m_customDestructor = Destroy;
|
||||
}
|
||||
// OFFSET: LEGO1 0x1001cdd0
|
||||
|
||||
virtual ~MxListParent() {}
|
||||
|
||||
// OFFSET: LEGO1 0x1001cd30
|
||||
static void Destroy(T *) {};
|
||||
|
||||
// OFFSET: LEGO1 0x1001cd20
|
||||
virtual MxS8 Compare(T *, T *) = 0;
|
||||
|
||||
static void Destroy(T *) {};
|
||||
protected:
|
||||
MxU32 m_count; // +0x8
|
||||
void (*m_customDestructor)(T *); // +0xc
|
||||
@ -114,7 +110,6 @@ class MxListCursorChildChild : public MxListCursorChild<T>
|
||||
};
|
||||
|
||||
template <class T>
|
||||
// OFFSET: LEGO1 0x1001ce20
|
||||
MxList<T>::~MxList()
|
||||
{
|
||||
DeleteAll();
|
||||
|
||||
@ -8,17 +8,6 @@
|
||||
#include "compat.h"
|
||||
#include "decomp.h"
|
||||
|
||||
// OFFSET: LEGO1 0x100ac320 TEMPLATE
|
||||
// list<unsigned int,allocator<unsigned int> >::~list<unsigned int,allocator<unsigned int> >
|
||||
|
||||
// FIXME: Example of template compare functionality, remove before merging.
|
||||
#include "mxstl.h"
|
||||
#include <iostream>
|
||||
void make_a_list() {
|
||||
List<unsigned int> l;
|
||||
cout << l.size();
|
||||
}
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxNotification, 0x8);
|
||||
DECOMP_SIZE_ASSERT(MxNotificationManager, 0x40);
|
||||
|
||||
|
||||
@ -26,4 +26,13 @@ class MxPresenterList : public MxPresenterListParent
|
||||
|
||||
typedef MxListCursorChildChild<MxPresenter> MxPresenterListCursor;
|
||||
|
||||
// OFFSET: LEGO1 0x1001cd30 TEMPLATE
|
||||
// MxListParent<MxPresenter>::Destroy
|
||||
|
||||
// OFFSET: LEGO1 0x1001cdd0 TEMPLATE
|
||||
// MxListParent<MxPresenter>::~MxListParent<MxPresenter>
|
||||
|
||||
// OFFSET: LEGO1 0x1001ce20 TEMPLATE
|
||||
// MxList<MxPresenter>::~MxList<MxPresenter>
|
||||
|
||||
#endif // MXPRESENTERLIST_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user