Karma Engine
Loading...
Searching...
No Matches
KGPool< T > Struct Template Reference
Collaboration diagram for KGPool< T >:

Public Member Functions

T * GetByKey (KGGuiID key)
 
T * GetByIndex (KGPoolIdx n)
 
KGPoolIdx GetIndex (const T *p) const
 
T * GetOrAddByKey (KGGuiID key)
 
bool Contains (const T *p) const
 
void Clear ()
 
T * Add ()
 
void Remove (KGGuiID key, const T *p)
 
void Remove (KGGuiID key, KGPoolIdx idx)
 
void Reserve (int capacity)
 
int GetAliveCount () const
 
int GetBufSize () const
 
int GetMapSize () const
 
T * TryGetMapData (KGPoolIdx n)
 
int GetSize ()
 

Public Attributes

KGVector< T > Buf
 
KarmaGuiStorage Map
 
KGPoolIdx FreeIdx
 
KGPoolIdx AliveCount
 

The documentation for this struct was generated from the following file: