Class used by SML to hold an array of class structures. More...
#include <sml/classarray.h>
Public Member Functions | |
| CLASSARRAY (CONTEXT *context, const CLASS *Class) | |
| virtual | ~CLASSARRAY () |
| const CLASS * | GetClass () const |
| void * | GetItem (INT32 num) |
| INT32 | GetNumItems () const |
| ERRVALUE | Resize (INT32 NumItems) |
| ERRVALUE | SetItem (INT32 num, void *ptr, bool bTakePosession) |
Class used by SML to hold an array of class structures.
| virtual SML::CLASSARRAY::~CLASSARRAY | ( | ) | [virtual] |
| const CLASS* SML::CLASSARRAY::GetClass | ( | ) | const |
| void* SML::CLASSARRAY::GetItem | ( | INT32 | num | ) |
Get an item from the array.
| INT32 SML::CLASSARRAY::GetNumItems | ( | ) | const |
Set an item in the array.
Item number is 0-based. If bTakePossession is false, then the item's copy constructor will be used to copy the class. If it's true, then the array may just keep the pointer passed in, and will free it when it's done with it. If attempting to set an item not already in the array, the array is expanded to be able to hold it.
1.6.1