gwnavruntime/containers/circulararray.h Source File
Go to the documentation of this file.
17 template <
class T,
int SID=Stat_Default_Mem>
23 CircularArray(MemoryHeap* heap =
nullptr);
33 void PushBack(const T& item);
34 void PushFront(const T& item);
37 void PopNFirstElements(
KyUInt32 popCount);
41 const T& GetBack() const;
44 const T& GetFront() const;
48 const T& operator [] (
KyUInt32 index) const;
57 void AutoReserve() {
if (IsFull()) Reserve(Max<KyUInt32>(4, 2 * GetCapacity())); }
59 void IncreaseBeginIdx();
60 void IncreaseEndIdx();
61 void DecreaseBeginIdx();
62 void DecreaseEndIdx();
65 MemoryHeap*
const m_heap;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17