版本

menu_open
Wwise SDK 2022.1.18
CAkHeap< T_KEY, T_ITEM, U_POOL, U_KEY, TGrowBy, TMovePolicy, TComparePolicy > 模板类 参考

#include <AkHeap.h>

类 CAkHeap< T_KEY, T_ITEM, U_POOL, U_KEY, TGrowBy, TMovePolicy, TComparePolicy > 继承关系图:
AkArray< T_ITEM, const T_ITEM &, U_POOL, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< T_ITEM > >

Public 成员函数

T_ITEM * Insert (T_KEY in_Key)
 
void RemoveRoot ()
 
void Heapify ()
 
- Public 成员函数 继承自 AkArray< T_ITEM, const T_ITEM &, U_POOL, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< T_ITEM > >
 AkArray ()
 Constructor 更多...
 
 ~AkArray ()
 Destructor 更多...
 
Iterator Begin () const
 Returns the iterator to the first item of the array, will be End() if the array is empty. 更多...
 
Iterator End () const
 Returns the iterator to the end of the array 更多...
 
Iterator FindEx (const T_ITEM & in_Item) const
 Returns the iterator th the specified item, will be End() if the item is not found 更多...
 
Iterator BinarySearch (const T_ITEM & in_Item) const
 
Iterator Erase (Iterator &in_rIter)
 Erase the specified iterator from the array 更多...
 
void Erase (unsigned int in_uIndex)
 Erase the item at the specified index 更多...
 
Iterator EraseSwap (Iterator &in_rIter)
 
void EraseSwap (unsigned int in_uIndex)
 
bool IsGrowingAllowed () const
 
AKRESULT Reserve (AkUInt32 in_ulReserve)
 
AKRESULT ReserveExtra (AkUInt32 in_ulReserve)
 
AkUInt32 Reserved () const
 
void Term ()
 Term the array. Must be called before destroying the object. 更多...
 
AkForceInline AkUInt32 Length () const
 Returns the numbers of items in the array. 更多...
 
AkForceInline T_ITEM * Data () const
 Returns a pointer to the first item in the array. 更多...
 
AkForceInline bool IsEmpty () const
 Returns true if the number items in the array is 0, false otherwise. 更多...
 
AkForceInline T_ITEM * Exists (const T_ITEM & in_Item) const
 Returns a pointer to the specified item in the list if it exists, 0 if not found. 更多...
 
AkForceInline T_ITEM * AddLast ()
 
AkForceInline T_ITEM * AddLast (const T_ITEM & in_rItem)
 Add an item in the array, and fills it with the provided item. 更多...
 
T_ITEM & Last ()
 Returns a reference to the last item in the array. 更多...
 
void RemoveLast ()
 Removes the last item from the array. 更多...
 
AKRESULT Remove (const T_ITEM & in_rItem)
 Removes the specified item if found in the array. 更多...
 
AKRESULT RemoveSwap (const T_ITEM & in_rItem)
 
void RemoveAll ()
 Removes all items in the array 更多...
 
AkForceInline T_ITEM & operator[] (unsigned int uiIndex) const
 Operator [], return a reference to the specified index. 更多...
 
T_ITEM * Insert (unsigned int in_uIndex)
 
bool GrowArray ()
 
bool GrowArray (AkUInt32 in_uGrowBy)
 Resize the array. 更多...
 
bool Resize (AkUInt32 in_uiSize)
 Resize the array to the specified size. 更多...
 
void Transfer (AkArray< T_ITEM, const T_ITEM &, U_POOL, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< T_ITEM > > &in_rSource)
 
AKRESULT Copy (const AkArray< T_ITEM, const T_ITEM &, U_POOL, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< T_ITEM > > &in_rSource)
 

额外继承的成员函数

- Protected 属性 继承自 AkArray< T_ITEM, const T_ITEM &, U_POOL, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< T_ITEM > >
T_ITEM * m_pItems
 pointer to the beginning of the array. 更多...
 
AkUInt32 m_uLength
 number of items in the array. 更多...
 
AkUInt32 m_ulReserved
 how many we can have at most (currently allocated). 更多...
 

详细描述

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>>
class CAkHeap< T_KEY, T_ITEM, U_POOL, U_KEY, TGrowBy, TMovePolicy, TComparePolicy >

在文件 AkHeap.h33 行定义.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅