#include <THashTable.h>
Classes | |
| struct | Bucket |
Public Types | |
| using | t_ItemCompareFunc = TBOOL ( * )( const void* a_pMem1, const void* a_pMem2, TSIZE a_iSize ) |
| using | t_ItemHashFunc = TUINT32 ( * )( const void* a_pMem, TSIZE a_iSize, TUINT32 a_uiMaxValue ) |
Public Member Functions | |
| THashTable () | |
| ~THashTable () | |
| TINT * | GetHashToBucketIds () const |
| TINT | GetItemCount () const |
| void * | GetItemArray () const |
| void | DeleteBucketMemory () |
| void | Destroy () |
| Bucket * | Find (void *a_pData) |
| Bucket * | Insert (void *a_pData) |
| Bucket * | Append (void *a_pData) |
| TBOOL | Create (TINT a_iItemCountTotal, TINT a_iItemSize, TINT a_iBucketSize, TINT a_iHashNodeCount) |
| void | SetItemCompareFunction (t_ItemCompareFunc a_HashCompareFunc) |
| void | SetItemHashFunction (t_ItemHashFunc a_HashCompareFunc) |
Static Public Attributes | |
| static constexpr TINT | INVALID_BUCKET_ID = -1 |
Definition at line 5 of file THashTable.h.
| using THashTable::t_ItemCompareFunc = TBOOL ( * )( const void* a_pMem1, const void* a_pMem2, TSIZE a_iSize ) |
Definition at line 16 of file THashTable.h.
| using THashTable::t_ItemHashFunc = TUINT32 ( * )( const void* a_pMem, TSIZE a_iSize, TUINT32 a_uiMaxValue ) |
Definition at line 17 of file THashTable.h.
| THashTable::THashTable | ( | ) |
Definition at line 33 of file THashTable.cpp.
| THashTable::~THashTable | ( | ) |
Definition at line 48 of file THashTable.cpp.
| THashTable::Bucket * THashTable::Append | ( | void * | a_pData | ) |
Definition at line 105 of file THashTable.cpp.
| TBOOL THashTable::Create | ( | TINT | a_iItemCountTotal, |
| TINT | a_iItemSize, | ||
| TINT | a_iBucketSize, | ||
| TINT | a_iHashNodeCount ) |
Definition at line 134 of file THashTable.cpp.
| void THashTable::DeleteBucketMemory | ( | ) |
Definition at line 53 of file THashTable.cpp.
| void THashTable::Destroy | ( | ) |
Definition at line 59 of file THashTable.cpp.
| THashTable::Bucket * THashTable::Find | ( | void * | a_pData | ) |
Definition at line 81 of file THashTable.cpp.
|
inline |
Definition at line 23 of file THashTable.h.
|
inline |
Definition at line 25 of file THashTable.h.
|
inline |
Definition at line 24 of file THashTable.h.
| THashTable::Bucket * THashTable::Insert | ( | void * | a_pData | ) |
Definition at line 70 of file THashTable.cpp.
|
inline |
Definition at line 35 of file THashTable.h.
|
inline |
Definition at line 36 of file THashTable.h.
|
inlinestaticconstexpr |
Definition at line 14 of file THashTable.h.