gwnavruntime/containers/collection.h Source File
Go to the documentation of this file.
19 class CollectionIndexTracker_None;
22 class CollectionIndexTrackerPtr;
24 template <
class T,
typename CollectionIndexTracker,
int SID>
30 template <
class T,
int SID = Stat_Default_Mem>
37 T& PushBack(
const T& value);
40 T& PushBackUnique(
const T& value);
43 void ClearAndReleaseMemory();
50 const T& operator[](
KyUInt32 index)
const;
53 const T* GetDataPtr()
const;
62 bool DoesContain(
const T& value)
const;
65 CollectionImpl<T, CollectionIndexTracker_None<T>, SID> m_collectionImpl;
76 template <
class T,
int SID = Stat_Default_Mem>
83 T& PushBack(
const T& value);
86 T& PushBackUnique(
const T& value);
89 void ClearAndReleaseMemory();
96 const T& operator[](
KyUInt32 index)
const;
99 const T* GetDataPtr()
const;
108 bool DoesContain(
const T& value)
const;
113 CollectionImpl<T, CollectionIndexTrackerPtr<T>, SID> m_collectionImpl;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Collection is a class which is a "Collection" of elements (not sorted, not unique) ...
Definition: collection.h:31
TrackedCollection is a class which is a "Collection" of T=C* or T = Ptr< c="" /> (not sorted...
Definition: collection.h:77
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
KyUInt32 RemoveAt(KyUInt32 index)
Removes the element at specified index in the container.
Definition: collection.inl:204
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
KyUInt32 RemoveAt(KyUInt32 index)
Removes the element at specified index in the container.
Definition: collection.inl:162
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68