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

#include <Karto.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

An array that can be resized as long as the size does not exceed the initial capacity

Definition at line 6219 of file Karto.h.


Constructor & Destructor Documentation

Constructs lookup array

Definition at line 6225 of file Karto.h.

virtual karto::LookupArray::~LookupArray ( ) [inline, virtual]

Destructor

Definition at line 6235 of file Karto.h.


Member Function Documentation

void karto::LookupArray::Clear ( ) [inline]

Clear array

Definition at line 6247 of file Karto.h.

Gets array pointer

Returns:
array pointer

Definition at line 6310 of file Karto.h.

Gets array pointer

Returns:
array pointer

Definition at line 6319 of file Karto.h.

Gets size of array

Returns:
array size

Definition at line 6256 of file Karto.h.

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

Gets reference to value at given index

Parameters:
index
Returns:
reference to value at index

Definition at line 6287 of file Karto.h.

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

Gets value at given index

Parameters:
index
Returns:
value at index

Definition at line 6299 of file Karto.h.

void karto::LookupArray::SetSize ( kt_int32u  size) [inline]

Sets size of array (resize if not big enough)

Parameters:
size

Definition at line 6265 of file Karto.h.


Member Data Documentation

Definition at line 6326 of file Karto.h.

Definition at line 6325 of file Karto.h.

Definition at line 6327 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Thu Jun 6 2019 21:02:57