gwnavruntime/containers/circulararray.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_CircularArray_H
9 #define Navigation_CircularArray_H
18 template <
class T,
int SID=Stat_Default_Mem>
24 CircularArray(MemoryHeap* heap =
KY_NULL);
34 void PushBack(const T& item);
35 void PushFront(const T& item);
38 void PopNFirstElements(
KyUInt32 popCount);
42 const T& GetBack() const;
45 const T& GetFront() const;
49 const T& operator [] (
KyUInt32 index) const;
58 void AutoReserve() {
if (IsFull()) Reserve(Max<KyUInt32>(4, 2 * GetCapacity())); }
60 void IncreaseBeginIdx();
61 void IncreaseEndIdx();
62 void DecreaseBeginIdx();
63 void DecreaseEndIdx();
66 MemoryHeap*
const m_heap;
77 #endif // Navigation_CircularArray_H
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36