Kaim::Collection< T, SID > Class Template Reference

Kaim::Collection< T, SID > Class Template Reference

#include <collection.h>

Class Description

template<class T, int SID = Stat_Default_Mem>
class Kaim::Collection< T, SID >

Collection is a class which is a "Collection" of elements (not sorted, not unique)

Functions

T & PushBack (const T &value)
 
T & PushBack ()
 
T & PushBackUnique (const T &value)
 
void Clear ()
 
void ClearAndReleaseMemory ()
 
void Reserve (KyUInt32 size)
 
KyUInt32 GetCount () const
 
KyUInt32 GetCapacity () const
 
bool IsEmpty () const
 
const T & operator[] (KyUInt32 index) const
 
T & operator[] (KyUInt32 index)
 
const T * GetDataPtr () const
 
T * GetDataPtr ()
 
KyUInt32 RemoveAt (KyUInt32 index)
 Removes the element at specified index in the container. More...
 
KyUInt32 FindFirstOccurrence (const T &value, KyUInt32 startIndex=0)
 
KyUInt32 RemoveFirstOccurrence (const T &value, KyUInt32 startIndex=0)
 
bool DoesContain (const T &value) const
 

For internal use only

CollectionImpl< T, CollectionIndexTracker_None< T >, SID > m_collectionImpl
 

Member Function Documentation

template<class T , int SID>
KyUInt32 Kaim::Collection< T, SID >::RemoveAt ( KyUInt32  index)
inline

Removes the element at specified index in the container.

Returns
the index of the following element in the container.

The documentation for this class was generated from the following files: