Public Member Functions | Private Attributes
karto::LookupArray Class Reference

#include <GridIndexLookup.h>

List of all members.

Public Member Functions

void Clear ()
kt_int32sGetArrayPointer ()
kt_int32sGetArrayPointer () const
kt_int32u GetSize () const
 LookupArray ()
kt_int32soperator[] (kt_int32u index)
kt_int32s operator[] (kt_int32u index) const
void SetSize (kt_int32u size)
virtual ~LookupArray ()

Private Attributes

kt_int32u m_Capacity
kt_int32sm_pArray
kt_int32u m_Size

Detailed Description

Resizable array whose contents are not preseved upon resizing.

Todo:
Consider replacing with List<kt_int32s>

Definition at line 40 of file GridIndexLookup.h.


Constructor & Destructor Documentation

Constructs empty array

Definition at line 23 of file GridIndexLookup.cpp.

Destructor

Definition at line 30 of file GridIndexLookup.cpp.


Member Function Documentation

Clears array

Definition at line 38 of file GridIndexLookup.cpp.

Gets array pointer

Returns:
array pointer

Definition at line 99 of file GridIndexLookup.h.

Gets array pointer (const version)

Returns:
array pointer

Definition at line 108 of file GridIndexLookup.h.

Gets size of this array

Returns:
size of this array

Definition at line 43 of file GridIndexLookup.cpp.

kt_int32s& karto::LookupArray::operator[] ( kt_int32u  index) [inline]

Gets reference to value at given index

Parameters:
indexindex
Returns:
reference to value at given index

Definition at line 76 of file GridIndexLookup.h.

kt_int32s karto::LookupArray::operator[] ( kt_int32u  index) const [inline]

Gets value at given index

Parameters:
indexindex
Returns:
value at given index

Definition at line 88 of file GridIndexLookup.h.

Sets size of this array (resize if not big enough)

Parameters:
sizenew size

Definition at line 48 of file GridIndexLookup.cpp.


Member Data Documentation

Definition at line 115 of file GridIndexLookup.h.

Definition at line 114 of file GridIndexLookup.h.

Definition at line 116 of file GridIndexLookup.h.


The documentation for this class was generated from the following files:


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Aug 27 2015 14:07:26