karto::LookupArray Class Reference

#include <Karto.h>

List of all members.

Public Member Functions

void Clear ()
kt_int32sGetArrayPointer () const
kt_int32sGetArrayPointer ()
kt_int32u GetSize () const
 LookupArray ()
kt_int32s operator[] (kt_int32u index) const
kt_int32soperator[] (kt_int32u index)
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 5820 of file Karto.h.


Constructor & Destructor Documentation

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

Constructs lookup array

Parameters:
arraySize 

Definition at line 5827 of file Karto.h.

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

Destructor

Definition at line 5837 of file Karto.h.


Member Function Documentation

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

Clear array

Definition at line 5849 of file Karto.h.

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

Gets array pointer

Returns:
array pointer

Definition at line 5921 of file Karto.h.

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

Gets array pointer

Returns:
array pointer

Definition at line 5912 of file Karto.h.

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

Gets size of array

Returns:
array size

Definition at line 5858 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 5901 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 5889 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 5867 of file Karto.h.


Member Data Documentation

Definition at line 5928 of file Karto.h.

Definition at line 5927 of file Karto.h.

Definition at line 5929 of file Karto.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


karto
Author(s): SRI International (package maintained by Brian Gerkey)
autogenerated on Fri Jan 11 10:07:05 2013