BaseVector Class Reference

#include <BaseVector.h>

Inheritance diagram for BaseVector:

Vector ObjectVector List of all members.

Public Member Functions

 BaseVector (int ilimit=8, int ithreshold=16)
 Create the object.
virtual ~BaseVector ()
 Decrement reference count for all objects.
virtual void FreeItem (Some Item) const
 Decrement object's reference count.
int Push (Base *what)
Base * Pop ()
Base * Get (int iIndex) const
 Get a pointer to object by index.
bool Insert (int n, Base *Item)
 Insert element 'Item' before element 'n'.
int InsertSorted (Base *Item, int *oEqual=0, int Mode=0)
 Insert element 'Item' so that array remains sorted (assumes its already sorted).

Detailed Description

BaseVector is a subclass of Vector that holds any number of pointers to Base objects. Every inserted object gets its reference counter incremented, and after removing a object from the vector it is the caller's responsability to decrement the reference counter after the object is no longer used.


Member Function Documentation

Base* BaseVector::Pop (  )  [inline]

Pick the top object from the array. NOTE: THIS FUNCTION DOES NOT decrement object's reference counter

Reimplemented from Vector.

int BaseVector::Push ( Base *  what  )  [inline]

Append the object to the array and increment object's reference counter.


The documentation for this class was generated from the following files:
Generated on Wed Aug 30 03:27:46 2006 for SWG EMU by  doxygen 1.4.7