1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Partial update to CUtlSymbolTable & CUtlSymbolTableLarge

This commit is contained in:
GAMMACASE
2025-08-01 21:57:25 +03:00
parent 569fc67303
commit ee975ec51c
2 changed files with 12 additions and 12 deletions

View File

@ -125,7 +125,7 @@ protected:
struct UtlSymTableHashFunctor struct UtlSymTableHashFunctor
{ {
ptrdiff_t m_ownerOffset; //ptrdiff_t m_ownerOffset;
UtlSymTableHashFunctor(); UtlSymTableHashFunctor();
unsigned int operator()( UtlSymTableAltKey k ) const; unsigned int operator()( UtlSymTableAltKey k ) const;
@ -134,7 +134,7 @@ protected:
struct UtlSymTableEqualFunctor struct UtlSymTableEqualFunctor
{ {
ptrdiff_t m_ownerOffset; //ptrdiff_t m_ownerOffset;
UtlSymTableEqualFunctor(); UtlSymTableEqualFunctor();
bool operator()( int a, int b ) const; bool operator()( int a, int b ) const;
@ -145,9 +145,9 @@ protected:
typedef CUtlHashtable<int, empty_t, UtlSymTableHashFunctor, UtlSymTableEqualFunctor, UtlSymTableAltKey> Hashtable_t; typedef CUtlHashtable<int, empty_t, UtlSymTableHashFunctor, UtlSymTableEqualFunctor, UtlSymTableAltKey> Hashtable_t;
typedef CUtlVector<MemBlockHandle_t> MemBlocksVec_t; typedef CUtlVector<MemBlockHandle_t> MemBlocksVec_t;
Hashtable_t m_HashTable; Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks; MemBlocksVec_t m_MemBlocks;
CUtlMemoryBlockAllocator m_MemBlockAllocator; CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
bool m_bInsensitive; bool m_bInsensitive;
}; };

View File

@ -227,14 +227,14 @@ private:
}; };
typedef CUtlHashtable<UtlSymLargeId_t, empty_t, UtlSymTableLargeHashFunctor, UtlSymTableLargeEqualFunctor, UtlSymTableLargeAltKey> Hashtable_t; typedef CUtlHashtable<UtlSymLargeId_t, empty_t, UtlSymTableLargeHashFunctor, UtlSymTableLargeEqualFunctor, UtlSymTableLargeAltKey> Hashtable_t;
typedef CUtlVectorRawAllocator< MemBlockHandle_t > MemBlocksVec_t; typedef CUtlLeanVector< MemBlockHandle_t > MemBlocksVec_t;
Hashtable_t m_HashTable; Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks; MemBlocksVec_t m_MemBlocks;
MUTEX_TYPE m_Mutex; MUTEX_TYPE m_Mutex;
CUtlMemoryBlockAllocator m_MemBlockAllocator; CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
int m_nElementLimit; int m_nElementLimit;
bool m_bThrowError; bool m_bThrowError;
}; };
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE > template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >