SML::CLASSARRAY Class Reference

Class used by SML to hold an array of class structures. More...

#include <sml/classarray.h>

List of all members.

Public Member Functions

 CLASSARRAY (CONTEXT *context, const CLASS *Class)
virtual ~CLASSARRAY ()
const CLASSGetClass () const
void * GetItem (INT32 num)
INT32 GetNumItems () const
ERRVALUE Resize (INT32 NumItems)
ERRVALUE SetItem (INT32 num, void *ptr, bool bTakePosession)

Detailed Description

Class used by SML to hold an array of class structures.


Constructor & Destructor Documentation

SML::CLASSARRAY::CLASSARRAY ( CONTEXT context,
const CLASS Class 
)
virtual SML::CLASSARRAY::~CLASSARRAY (  )  [virtual]

Member Function Documentation

const CLASS* SML::CLASSARRAY::GetClass (  )  const
void* SML::CLASSARRAY::GetItem ( INT32  num  ) 

Get an item from the array.

INT32 SML::CLASSARRAY::GetNumItems (  )  const
ERRVALUE SML::CLASSARRAY::Resize ( INT32  NumItems  ) 
ERRVALUE SML::CLASSARRAY::SetItem ( INT32  num,
void *  ptr,
bool  bTakePosession 
)

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.


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

Generated on Sun Oct 7 21:39:07 2012 for TNTsdk 2012 by  doxygen 1.6.1