Wwise SDK 2022.1.9
_ak_hash_list_8h_source
Version
menu_open
link
AkHashList.h
Go to the documentation of this file.
44 static const AkHashType kHashSizes[] = { 29, 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613, 393241, 786433, 1572869, 3145739, 6291469, 12582917, 25165843, 50331653, 100663319, 201326611, 402653189, 805306457, 1610612741 };
533 if ((HashSize() == 0) || (AkReal32)in_uNumberOfEntires / (AkReal32)HashSize() > kHashTableGrowthFactor)
674 template <class T_KEY, class T_MAPSTRUCT, typename T_ALLOC = ArrayPoolDefault, class KEY_POLICY = AkDefaultHashListBarePolicy<T_KEY, T_MAPSTRUCT>, class LIST_POLICY = AkDefaultHashListBarePolicy<T_KEY, T_MAPSTRUCT>>
681 typename AkHashListBare<T_KEY,T_MAPSTRUCT,T_ALLOC,KEY_POLICY,LIST_POLICY>::HashTableArray* pTable;
985 //If you initialize with anything else, you can ignore return codes of Set(), they will always succeed.
1034 // Set using an externally preallocated T_MAPSTRUCT -- Hash list takes ownership of the T_MAPSTRUCT.
1059 AKASSERT(!ExistsInList(KEY_POLICY::Key(in_pItem), uiTable)); // T_MAPSTRUCT must not exist in list !
1127 if ((HashSize() == 0) || (AkReal32)in_uNumberOfEntires / (AkReal32)HashSize() > kHashTableGrowthFactor)
AkHashListBare< T_KEY, T_MAPSTRUCT, T_ALLOC, KEY_POLICY, LIST_POLICY >::HashTableArray * pTable
Definition: AkHashList.h:681
bool operator!=(const ConstIterator &in_rOp) const
Definition: AkHashList.h:748
AkArray< Item *, Item *, T_ALLOC, AkGrowByPolicy_NoGrow > HashTableArray
Definition: AkHashList.h:59
Definition: AkHashList.h:762
static const T_KEY & Key(const T_MAPSTRUCT *in_pItem)
Definition: AkHashList.h:660
T_ITEM * ExistsInList(T_KEY in_Key, AkUIntPtr in_uiTable)
Definition: AkHashList.h:616
Definition: AkHashList.h:676
Definition: AkHashList.h:50
AKSOUNDENGINE_API void Free(AkMemPoolId in_poolId, void *in_pMemAddress)
static T_MAPSTRUCT *& Next(T_MAPSTRUCT *in_pItem)
Definition: AkHashList.h:668
T_MAPSTRUCT * ExistsInList(T_KEY in_Key, AkHashType in_uiTable) const
Definition: AkHashList.h:1211
bool operator!=(const Iterator &in_rOp) const
Definition: AkHashList.h:95
Definition: AkHashList.h:102
Definition: AkHashList.h:666
const AkHashListBare< T_KEY, T_MAPSTRUCT, T_ALLOC, KEY_POLICY >::HashTableArray * pTable
Definition: AkHashList.h:721
void RemoveItem(AkHashType in_uiTable, Item *in_pItem, Item *in_pPrevItem)
Definition: AkHashList.h:513
Definition: AkHashList.h:62
bool operator==(const Iterator &in_rOp) const
Definition: AkHashList.h:713
bool operator!=(const ConstIterator &in_rOp) const
Definition: AkHashList.h:135
Definition: AkKeyDef.h:34
T_ITEM * CreateEntry(T_KEY in_Key, AkUIntPtr in_uiTable)
Definition: AkHashList.h:632
ConstIteratorEx & operator++()
Definition: AkHashList.h:786
void RemoveItem(AkHashType in_uiTable, T_MAPSTRUCT *in_pItem, T_MAPSTRUCT *in_pPrevItem)
Definition: AkHashList.h:1201
MapStruct< T_KEY, T_ITEM > * operator->() const
Definition: AkHashList.h:124
Definition: AkHashList.h:54
MapStruct< T_KEY, T_ITEM > & operator*()
Definition: AkHashList.h:78
bool operator==(const ConstIterator &in_rOp) const
Definition: AkHashList.h:753
const MapStruct< T_KEY, T_ITEM > & operator*()
Definition: AkHashList.h:118
Definition: AkHashList.h:720
Definition: AkHashList.h:680
void Transfer(AkArray< T, ARG_T, TAlloc, TGrowBy, TMovePolicy > &in_rSource)
Definition: AkArray.h:814
Definition: AkHashList.h:165
bool operator==(const ConstIterator &in_rOp) const
Definition: AkHashList.h:130
AKRESULT Resize(AkUInt32 in_uExpectedNumberOfEntires)
Definition: AkHashList.h:539
Iterator Begin() const
Returns the iterator to the first item of the array, will be End() if the array is empty.
Definition: AkArray.h:327
Definition: AkHashList.h:659
void Transfer(AkHashList< T_KEY, T_ITEM, T_ALLOC > &in_source)
Definition: AkHashList.h:605
AkForceInline AkUInt32 Length() const
Returns the numbers of items in the array.
Definition: AkArray.h:549
MapStruct< T_KEY, T_ITEM > * operator->()
Definition: AkHashList.h:84
AKRESULT Reserve(AkUInt32 in_uNumberOfEntires)
Definition: AkHashList.h:1125
Definition: AkHashList.h:144
AkHashList< T_KEY, T_ITEM, T_ALLOC >::HashTableArray * pTable
Definition: AkHashList.h:63
bool operator==(const Iterator &in_rOp) const
Definition: AkHashList.h:90
AKRESULT Resize(AkUInt32 in_uExpectedNumberOfEntires)
Definition: AkHashList.h:1133
bool operator!=(const Iterator &in_rOp) const
Definition: AkHashList.h:708
const T_MAPSTRUCT * operator->() const
Definition: AkHashList.h:742
const T_MAPSTRUCT * operator*()
Definition: AkHashList.h:736
static T_MAPSTRUCT *& Next(T_MAPSTRUCT *in_pItem)
Definition: AkHashList.h:661
Definition: AkHashList.h:783
static const T_KEY & Key(const T_MAPSTRUCT *in_pItem)
Definition: AkHashList.h:667
const AkHashList< T_KEY, T_ITEM, T_ALLOC >::HashTableArray * pTable
Definition: AkHashList.h:103
Was this page helpful?
Need Support?
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageTell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise