## class XGArray

> Declared in <XDynArray.h>

> Array of objects. This knows how to manage an array (of fixed sized objects), grow the array, shrink the array, etc.

> This forms the code base for the dynamic array stuff later, and is internal to the YAAF libraries.

Construction/Destruction

> XGArray::XGArray
> XGArray::~XGArray

Public Methods

> XGArray::Delete
> XGArray::DeleteAll
> XGArray::Length
> XGArray::SetLength

Construction/Destruction

XGArray::XGArray

> Usage: void XGArgStream::ReadString(char*str)

> Construct an empty array.

XGArray::~XGArray

> Usage: XGArray::~XGArray()

> Destroy this object. This does nothing; the destruction of the contents of this thing is dependant on the template declared from this thing.

Public Methods

XGArray::Delete

> Usage: void XGArray::Delete(long index)

> Delete one element

XGArray::DeleteAll

> Usage: void XGArray::DeleteAll(void)

> Delete all elements

XGArray::Length

> Usage: long Length(void)const

> This returns the number of elements in this array

XGArray::SetLength

> Usage: void XGArray::SetLength(long length)

> This forces the length to be set to the particular size, clipping or adding elements to the end of the array