Public Member Functions | Private Attributes | List of all members
karto::LookupArray Class Reference

#include <Karto.h>

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

karto::LookupArray::LookupArray ( )
inline

Constructs lookup array

Definition at line 6225 of file Karto.h.

virtual karto::LookupArray::~LookupArray ( )
inlinevirtual

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.

kt_int32s* karto::LookupArray::GetArrayPointer ( )
inline

Gets array pointer

Returns
array pointer

Definition at line 6310 of file Karto.h.

kt_int32s* karto::LookupArray::GetArrayPointer ( ) const
inline

Gets array pointer

Returns
array pointer

Definition at line 6319 of file Karto.h.

kt_int32u karto::LookupArray::GetSize ( ) const
inline

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

kt_int32u karto::LookupArray::m_Capacity
private

Definition at line 6326 of file Karto.h.

kt_int32s* karto::LookupArray::m_pArray
private

Definition at line 6325 of file Karto.h.

kt_int32u karto::LookupArray::m_Size
private

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 Mon Jun 10 2019 14:02:19