GL Studio SCECpp Runtime Library
|
#include <gls_pointer_array.h>
Public Member Functions | |
GlsPointerArray (const GlsUInt32 size) | |
virtual | ~GlsPointerArray () |
GlsUInt32 | GetSize (void) const |
void * | GetPointer (const GlsUInt32 index) |
const void * | GetPointer (const GlsUInt32 index) const |
void | SetPointer (const GlsUInt32 index, void *const src) |
Protected Attributes | |
void **const | _pointers |
const GlsUInt32 | _count |
Abstracts an array of pointers
GlsPointerArray::GlsPointerArray | ( | const GlsUInt32 | size | ) |
Constructor
size | number of pointers this array will hold |
|
virtual |
Destructor - shall never be called
void* GlsPointerArray::GetPointer | ( | const GlsUInt32 | index | ) |
Get a pointer in the array
index | index of desired pointer |
const void* GlsPointerArray::GetPointer | ( | const GlsUInt32 | index | ) | const |
Get a const pointer in the array
index | index of desired pointer |
GlsUInt32 GlsPointerArray::GetSize | ( | void | ) | const |
Get the number of pointers in the array
void GlsPointerArray::SetPointer | ( | const GlsUInt32 | index, |
void *const | src | ||
) |
Set a pointer in the array
index | index of pointer to set |
src | new value for pointer |
|
protected |
number of pointers in pointers array
|
protected |
array of pointers else GLS_NULL if count == 0