Public Member Functions | Private Member Functions | Private Attributes | Friends | 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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

kt_int32u m_Capacity
 
kt_int32sm_pArray
 
kt_int32u m_Size
 

Friends

class boost::serialization::access
 

Detailed Description

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

Definition at line 6724 of file Karto.h.

Constructor & Destructor Documentation

◆ LookupArray()

karto::LookupArray::LookupArray ( )
inline

Constructs lookup array

Definition at line 6730 of file Karto.h.

◆ ~LookupArray()

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

Destructor

Definition at line 6740 of file Karto.h.

Member Function Documentation

◆ Clear()

void karto::LookupArray::Clear ( )
inline

Clear array

Definition at line 6752 of file Karto.h.

◆ GetArrayPointer() [1/2]

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

Gets array pointer

Returns
array pointer

Definition at line 6815 of file Karto.h.

◆ GetArrayPointer() [2/2]

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

Gets array pointer

Returns
array pointer

Definition at line 6824 of file Karto.h.

◆ GetSize()

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

Gets size of array

Returns
array size

Definition at line 6761 of file Karto.h.

◆ operator[]() [1/2]

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 6792 of file Karto.h.

◆ operator[]() [2/2]

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

Gets value at given index

Parameters
index
Returns
value at index

Definition at line 6804 of file Karto.h.

◆ serialize()

template<class Archive >
void karto::LookupArray::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Definition at line 6835 of file Karto.h.

◆ SetSize()

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

Sets size of array (resize if not big enough)

Parameters
size

Definition at line 6770 of file Karto.h.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 6833 of file Karto.h.

Member Data Documentation

◆ m_Capacity

kt_int32u karto::LookupArray::m_Capacity
private

Definition at line 6831 of file Karto.h.

◆ m_pArray

kt_int32s* karto::LookupArray::m_pArray
private

Definition at line 6830 of file Karto.h.

◆ m_Size

kt_int32u karto::LookupArray::m_Size
private

Definition at line 6832 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Sat Oct 3 2020 03:51:02