目录

Wwise SDK 2018.1.11
CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy > 模板类 参考
类 CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy > 继承关系图:
AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy >

Public 成员函数

T_ITEM *  Exists (T_KEY in_Key)
 
T_ITEM *  Set (T_KEY in_Key, const T_ITEM &in_Item)
 
T_ITEM *  SetFirst (T_KEY in_Key, const T_ITEM &in_Item)
 
T_ITEM *  Set (T_KEY in_Key)
 
AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy >::Iterator  FindEx (T_KEY in_Item) const
 
void  Unset (T_KEY in_Key)
 
void  UnsetSwap (T_KEY in_Key)
 
- Public 成员函数 继承自 AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy >
  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 MapStruct< T_KEY, T_ITEM > & in_Item) const
  Returns the iterator th the specified item, will be End() if the item is not found 更多...
 
Iterator  BinarySearch (const MapStruct< T_KEY, 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)
 
AKRESULT  Reserve (AkUInt32 in_ulReserve)
  Pre-Allocate a number of spaces in the array 更多...
 
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 MapStruct< T_KEY, 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. 更多...
 
MapStruct< T_KEY, T_ITEM > *  Exists (const MapStruct< T_KEY, T_ITEM > & in_Item) const
  Returns a pointer to the specified item in the list if it exists, 0 if not found. 更多...
 
MapStruct< T_KEY, T_ITEM > *  AddLast ()
 
MapStruct< T_KEY, T_ITEM > *  AddLast (const MapStruct< T_KEY, T_ITEM > & in_rItem)
  Add an item in the array, and fills it with the provided item. 更多...
 
MapStruct< T_KEY, 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 MapStruct< T_KEY, T_ITEM > & in_rItem)
  Removes the specified item if found in the array. 更多...
 
AKRESULT  RemoveSwap (const MapStruct< T_KEY, T_ITEM > & in_rItem)
 
void  RemoveAll ()
  Removes all items in the array 更多...
 
AkForceInline MapStruct< T_KEY, T_ITEM > &  operator[] (unsigned int uiIndex) const
  Operator [], return a reference to the specified index. 更多...
 
MapStruct< T_KEY, T_ITEM > *  Insert (unsigned int in_uIndex)
 
bool  GrowArray (AkUInt32 in_uGrowBy=TGrowBy)
  Resize the array. 更多...
 
bool  Resize (AkUInt32 in_uiSize)
  Resize the array to the specified size. 更多...
 
void  Transfer (AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy > &in_rSource)
 
AKRESULT  Copy (const AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy > &in_rSource)
 

额外继承的成员函数

- Protected 属性 继承自 AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, U_POOL, TGrowBy, TMovePolicy >
MapStruct< T_KEY, 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 = ArrayPoolDefault, AkUInt32 TGrowBy = 1, class TMovePolicy = AkAssignmentMovePolicy<MapStruct<T_KEY, T_ITEM> >>
class CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy >

在文件 AkKeyArray.h37 行定义.


该类的文档由以下文件生成: