mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Use TEMPLATE syntax for MxHashTable decomp declarations
This commit is contained in:
@@ -42,10 +42,8 @@ public:
|
|||||||
m_customDestructor = Destroy;
|
m_customDestructor = Destroy;
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100afd30
|
|
||||||
static void Destroy(T*){};
|
static void Destroy(T*){};
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100afcd0
|
|
||||||
virtual MxS8 Compare(T*, T*) = 0;
|
virtual MxS8 Compare(T*, T*) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -72,7 +70,6 @@ public:
|
|||||||
|
|
||||||
virtual MxS8 Compare(T*, T*) = 0;
|
virtual MxS8 Compare(T*, T*) = 0;
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100afdc0
|
|
||||||
virtual MxU32 Hash(T*) = 0;
|
virtual MxU32 Hash(T*) = 0;
|
||||||
|
|
||||||
// FIXME: use of friend here?
|
// FIXME: use of friend here?
|
||||||
@@ -154,7 +151,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
// OFFSET: LEGO1 0x100b0bd0
|
|
||||||
MxHashTable<T>::~MxHashTable()
|
MxHashTable<T>::~MxHashTable()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_numSlots; i++) {
|
for (int i = 0; i < m_numSlots; i++) {
|
||||||
@@ -175,7 +171,6 @@ MxHashTable<T>::~MxHashTable()
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
// OFFSET: LEGO1 0x100b7ab0
|
|
||||||
inline void MxHashTable<T>::Resize()
|
inline void MxHashTable<T>::Resize()
|
||||||
{
|
{
|
||||||
// Save a reference to the current table
|
// Save a reference to the current table
|
||||||
@@ -212,7 +207,6 @@ inline void MxHashTable<T>::Resize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
// OFFSET: LEGO1 0x100b7b80
|
|
||||||
inline void MxHashTable<T>::_NodeInsert(MxHashTableNode<T>* p_node)
|
inline void MxHashTable<T>::_NodeInsert(MxHashTableNode<T>* p_node)
|
||||||
{
|
{
|
||||||
int bucket = p_node->m_hash % m_numSlots;
|
int bucket = p_node->m_hash % m_numSlots;
|
||||||
|
@@ -21,4 +21,13 @@ public:
|
|||||||
virtual MxU32 Hash(MxVariable*); // +0x18
|
virtual MxU32 Hash(MxVariable*); // +0x18
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100b0bd0 TEMPLATE
|
||||||
|
// MxHashTable<MxVariable>::~MxHashTable<MxVariable>
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100b7ab0 TEMPLATE
|
||||||
|
// MxHashTable<MxVariable>::Resize
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100b7b80 TEMPLATE
|
||||||
|
// MxHashTable<MxVariable>::_NodeInsert
|
||||||
|
|
||||||
#endif // MXVARIABLETABLE_H
|
#endif // MXVARIABLETABLE_H
|
||||||
|
Reference in New Issue
Block a user