gwnavruntime/querysystem/workingmemcontainers/workingmemarray.h Source File
Go to the documentation of this file.
19 WorkingMemArray() : m_count(0), m_capacity(0) {}
21 WorkingMemArray(WorkingMemory* workingMemory) { Init(workingMemory); }
23 void Init(WorkingMemory* workingMemory);
25 bool IsInitialized()
const {
return m_buffer.IsInitialized(); }
27 T* GetBuffer()
const {
return (T*)m_buffer.GetBuffer(); }
28 KyUInt32 GetCount()
const {
return m_count; }
29 KyUInt32 GetCapacity()
const {
return m_capacity; }
30 bool IsEmpty()
const {
return m_count == 0; }
32 void MakeEmpty() { m_count = 0; }
37 void PushBack_UnSafe(
const T& x);
41 const T& operator[](UPInt idx)
const;
42 T& operator[](UPInt idx);
44 void ReleaseWorkingMemoryBuffer() { m_buffer.ReleaseBuffer(); }
48 bool TryToResize(
KyUInt32 capacity = 0);
51 WorkingMemContainerBase m_buffer;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17