Go to the documentation of this file.
32 template <
class T_KEY,
class T_ITEM,
class U_POOL,
class U_KEY = AkGetArrayKey< T_KEY, T_ITEM >,
class TGrowBy = AkGrowByPolicy_DEFAULT,
class TMovePolicy = AkAssignmentMovePolicy<T_ITEM>,
class TComparePolicy = AkDefaultSortedKeyCompare<T_KEY> >
33 class CAkHeap :
public AkArray< T_ITEM, const T_ITEM &, U_POOL, TGrowBy, TMovePolicy >
44 while (insertIdx != 0)
46 int parentIdx = Parent(insertIdx);
51 insertIdx = parentIdx;
62 U_KEY::Get(*pItem) = in_Key;
112 return TComparePolicy::Lesser((
void*)
this, a, b);
125 return (i - 1U) / 2U;
130 return (2U * i + 1U);
135 return (2U * i + 2U);
Specific implementation of array.
AkUInt32 m_uLength
number of items in the array.
AkForceInline T * AddLast()
uint32_t AkUInt32
Unsigned 32-bit integer.
T_ITEM * Insert(T_KEY in_Key)
T * m_pItems
pointer to the beginning of the array.
Tell 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