Version

menu_open
Wwise SDK 2023.1.8
CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy > Class Template Reference

#include <AkKeyArray.h>

Inheritance diagram for CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy >:
AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, ArrayPoolDefault, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< MapStruct< T_KEY, T_ITEM > > > AkArrayAllocatorNoAlign< T_MEMID >

Public Member Functions

T_ITEM * Exists (T_KEY in_Key) const
 
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 Member Functions inherited from AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, ArrayPoolDefault, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< MapStruct< T_KEY, T_ITEM > > >
 AkArray ()
 Constructor. More...
 
 ~AkArray ()
 Destructor. More...
 
Iterator Begin () const
 Returns the iterator to the first item of the array, will be End() if the array is empty. More...
 
Iterator End () const
 Returns the iterator to the end of the array. More...
 
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. More...
 
Iterator BinarySearch (const MapStruct< T_KEY, T_ITEM > & in_Item) const
 
Iterator Erase (Iterator &in_rIter)
 Erase the specified iterator from the array. More...
 
void Erase (unsigned int in_uIndex)
 Erase the item at the specified index. More...
 
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. More...
 
AkForceInline AkUInt32 Length () const
 Returns the numbers of items in the array. More...
 
AkForceInline MapStruct< T_KEY, T_ITEM > * Data () const
 Returns a pointer to the first item in the array. More...
 
AkForceInline bool IsEmpty () const
 Returns true if the number items in the array is 0, false otherwise. More...
 
AkForceInline 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. More...
 
AkForceInline MapStruct< T_KEY, T_ITEM > * AddLast ()
 
AkForceInline 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. More...
 
MapStruct< T_KEY, T_ITEM > & Last ()
 Returns a reference to the last item in the array. More...
 
void RemoveLast ()
 Removes the last item from the array. More...
 
AKRESULT Remove (const MapStruct< T_KEY, T_ITEM > & in_rItem)
 Removes the specified item if found in the array. More...
 
AKRESULT RemoveSwap (const MapStruct< T_KEY, T_ITEM > & in_rItem)
 
void RemoveAll ()
 Removes all items in the array. More...
 
AkForceInline MapStruct< T_KEY, T_ITEM > & operator[] (unsigned int uiIndex) const
 Operator [], return a reference to the specified index. More...
 
Iterator Insert (Iterator &in_rIter)
 
MapStruct< T_KEY, T_ITEM > * Insert (unsigned int in_uIndex)
 
bool GrowArray ()
 
bool GrowArray (AkUInt32 in_uGrowBy)
 Resize the array. More...
 
bool Resize (AkUInt32 in_uiSize)
 Resize the array to the specified size. More...
 
void Transfer (AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, ArrayPoolDefault, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< MapStruct< T_KEY, T_ITEM > > > &in_rSource)
 
AKRESULT Copy (const AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, ArrayPoolDefault, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< MapStruct< T_KEY, T_ITEM > > > &in_rSource)
 

Additional Inherited Members

- Static Public Member Functions inherited from AkArrayAllocatorNoAlign< T_MEMID >
static AkForceInline void * Alloc (size_t in_uSize)
 
static AkForceInline void * ReAlloc (void *in_pCurrent, size_t in_uOldSize, size_t in_uNewSize)
 
static AkForceInline void Free (void *in_pAddress)
 
static AkForceInline void TransferMem (void *&io_pDest, AkArrayAllocatorNoAlign< T_MEMID > in_srcAlloc, void *in_pSrc)
 
- Protected Attributes inherited from AkArray< MapStruct< T_KEY, T_ITEM >, const MapStruct< T_KEY, T_ITEM > &, ArrayPoolDefault, AkGrowByPolicy_DEFAULT, AkAssignmentMovePolicy< MapStruct< T_KEY, T_ITEM > > >
MapStruct< T_KEY, T_ITEM > * m_pItems
 pointer to the beginning of the array. More...
 
AkUInt32 m_uLength
 number of items in the array. More...
 
AkUInt32 m_ulReserved
 how many we can have at most (currently allocated). More...
 

Detailed Description

template<class T_KEY, class T_ITEM, class U_POOL = ArrayPoolDefault, class TGrowBy = AkGrowByPolicy_DEFAULT, class TMovePolicy = AkAssignmentMovePolicy<MapStruct<T_KEY, T_ITEM> >>
class CAkKeyArray< T_KEY, T_ITEM, U_POOL, TGrowBy, TMovePolicy >

Definition at line 36 of file AkKeyArray.h.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

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