![]() |
Public API Reference |
#include <sarray.h>
Public Methods | |
csStaticArray (int Size=0) | |
constructor. More... | |
virtual | ~csStaticArray () |
destructor. More... | |
int | GetSize () const |
Return the number of elements in the array. More... | |
void | Clear (bool DeleteOld=true) |
Remove all elements from the array. More... | |
void | Alloc (int s, bool DeleteOld=true) |
Allocate the given number of elements. More... | |
void | ReAlloc (int s) |
Change the size of the array but copy the contents. More... | |
Protected Methods | |
void | Copy (const csStaticArray *other, bool DeleteOld=true) |
Remove all elements and copy the contents from another array. More... | |
void | Copy (void *NewData, int NewSize, bool DeleteOld=true) |
Remove all elements and copy the contents from another array. More... | |
void | TakeOver (csStaticArray *other, bool DeleteOld=true) |
Remove all elements (and delete them if 'DeleteOld is true), then use the contents of another array. More... | |
void | TakeOver (void *NewData, int NewSize, bool DeleteOld=true) |
Use the given array and size for this array. More... | |
virtual void * | AllocateArray (int Size) const=0 |
Allocate an array of the given number of elements. More... | |
virtual void | DeleteArray (void *Array) const=0 |
Delete an array of elements. More... | |
virtual void | CopyArray (void *Dest, void *src, int Count) const=0 |
Copy one array into another one. More... |
Definition at line 42 of file sarray.h.
|
constructor.
|
|
destructor.
|
|
Allocate the given number of elements. The old contents are removed, and if 'DeleteOld' is true they are also deleted. |
|
Allocate an array of the given number of elements.
|
|
Remove all elements from the array. If 'DeleteOld' is true then the elements are also deleted. Referenced by TakeOver. |
|
Remove all elements and copy the contents from another array. If 'DeleteOld' is true then the old contents are deleted. |
|
Remove all elements and copy the contents from another array. If 'DeleteOld' is true then the old contents are deleted. |
|
Copy one array into another one.
|
|
Delete an array of elements.
|
|
Return the number of elements in the array.
|
|
Change the size of the array but copy the contents.
|
|
Use the given array and size for this array. They are taken over, not copied! Definition at line 143 of file sarray.h. References Clear. |
|
Remove all elements (and delete them if 'DeleteOld is true), then use the contents of another array. The other array will lose control over its elements and be cleared to empty. |