gwnavruntime/containers/collection.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_Collection_H
9 #define Navigation_Collection_H
20 class CollectionIndexTracker_None;
23 class CollectionIndexTrackerPtr;
25 template <
class T,
typename CollectionIndexTracker,
int SID>
31 template <
class T,
int SID = Stat_Default_Mem>
38 T& PushBack(
const T& value);
41 T& PushBackUnique(
const T& value);
44 void ClearAndReleaseMemory();
51 const T& operator[](
KyUInt32 index)
const;
54 const T* GetDataPtr()
const;
63 bool DoesContain(
const T& value)
const;
66 CollectionImpl<T, CollectionIndexTracker_None<T>, SID> m_collectionImpl;
77 template <
class T,
int SID = Stat_Default_Mem>
84 T& PushBack(const T& value);
87 T& PushBackUnique(const T& value);
90 void ClearAndReleaseMemory();
97 const T& operator[](
KyUInt32 index) const;
100 const T* GetDataPtr() const;
109 bool DoesContain(const T& value) const;
114 CollectionImpl<T, CollectionIndexTrackerPtr<T>, SID> m_collectionImpl;
120 #include "gwnavruntime/containers/collection.inl"
Collection is a class which is a "Collection" of elements (not sorted, not unique) ...
Definition: collection.h:32
TrackedCollection is a class which is a "Collection" of T=C* or T = Ptr< c="" /> (not sorted...
Definition: collection.h:87
KyUInt32 RemoveAt(KyUInt32 index)
Removes the element at specified index in the container.
Definition: collection.inl:204
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
KyUInt32 RemoveAt(KyUInt32 index)
Removes the element at specified index in the container.
Definition: collection.inl:162
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226