#include <GridIndexLookup.h>
Public Member Functions | |
void | Clear () |
kt_int32s * | GetArrayPointer () |
kt_int32s * | GetArrayPointer () const |
kt_int32u | GetSize () const |
LookupArray () | |
kt_int32s & | operator[] (kt_int32u index) |
kt_int32s | operator[] (kt_int32u index) const |
void | SetSize (kt_int32u size) |
virtual | ~LookupArray () |
Private Attributes | |
kt_int32u | m_Capacity |
kt_int32s * | m_pArray |
kt_int32u | m_Size |
Resizable array whose contents are not preseved upon resizing.
Definition at line 40 of file GridIndexLookup.h.
karto::LookupArray::LookupArray | ( | ) |
Constructs empty array
Definition at line 23 of file GridIndexLookup.cpp.
|
virtual |
Destructor
Definition at line 30 of file GridIndexLookup.cpp.
void karto::LookupArray::Clear | ( | ) |
Clears array
Definition at line 38 of file GridIndexLookup.cpp.
|
inline |
|
inline |
Gets array pointer (const version)
Definition at line 108 of file GridIndexLookup.h.
kt_int32u karto::LookupArray::GetSize | ( | ) | const |
Gets size of this array
Definition at line 43 of file GridIndexLookup.cpp.
Gets reference to value at given index
index | index |
Definition at line 76 of file GridIndexLookup.h.
Gets value at given index
index | index |
Definition at line 88 of file GridIndexLookup.h.
void karto::LookupArray::SetSize | ( | kt_int32u | size | ) |
Sets size of this array (resize if not big enough)
size | new size |
Definition at line 48 of file GridIndexLookup.cpp.
|
private |
Definition at line 115 of file GridIndexLookup.h.
|
private |
Definition at line 114 of file GridIndexLookup.h.
|
private |
Definition at line 116 of file GridIndexLookup.h.