Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::core::KgeArray Class Reference

#include <KgeArray.h>

Public Member Functions

 KgeArray (uint SizeofItem, uint InitItemCount, uint ExpandCount)
 Constructor.
 ~KgeArray ()
 Destructor.
void Add (void *data, u32 count=1)
 Adds an element.
void * Get (uint index)
 Gets an item by its index.
uint Size ()
 Returns the array size.
void Clear ()
 Clear the array.
u8 * GetData ()
 Get Array Data.

Protected Member Functions

void Expand ()
 Expand the array size.

Protected Attributes

u8 * m_pData
uint m_iSizeofItem
uint m_iArraySize
uint m_iItemCount
uint m_iExpandCount

Detailed Description

Definition at line 9 of file KgeArray.h.

Constructor & Destructor Documentation

kge::core::KgeArray::KgeArray ( uint  SizeofItem,
uint  InitItemCount,
uint  ExpandCount 
)

Constructor.

kge::core::KgeArray::~KgeArray ( )

Destructor.

Member Function Documentation

void kge::core::KgeArray::Add ( void *  data,
u32  count = 1 
)

Adds an element.

void kge::core::KgeArray::Clear ( )
inline

Clear the array.

Definition at line 29 of file KgeArray.h.

void kge::core::KgeArray::Expand ( )
protected

Expand the array size.

void* kge::core::KgeArray::Get ( uint  index)

Gets an item by its index.

u8* kge::core::KgeArray::GetData ( )
inline

Get Array Data.

Definition at line 32 of file KgeArray.h.

uint kge::core::KgeArray::Size ( )
inline

Returns the array size.

Definition at line 26 of file KgeArray.h.

Member Data Documentation

uint kge::core::KgeArray::m_iArraySize
protected

Definition at line 37 of file KgeArray.h.

uint kge::core::KgeArray::m_iExpandCount
protected

Definition at line 37 of file KgeArray.h.

uint kge::core::KgeArray::m_iItemCount
protected

Definition at line 37 of file KgeArray.h.

uint kge::core::KgeArray::m_iSizeofItem
protected

Definition at line 37 of file KgeArray.h.

u8* kge::core::KgeArray::m_pData
protected

Definition at line 36 of file KgeArray.h.


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