class CArrayPtr : public CArrayFix< T * > |
A thin templated base class for arrays of pointers to objects.
The public functions contribute to standard array behaviour.
The class is always derived from and is never instantiated explicitly.
Public Member Functions | |
---|---|
CArrayPtr(TBufRep, TInt) | |
void | ResetAndDestroy() |
void | ResetAndDestroy | ( | ) | [inline] |
Destroys all objects whose pointers form the elements of the array, before resetting the array.
The destructor of each class T object is called before the objects themselves are destroyed.
If the array is not empty, this member function must be called before the array is deleted to prevent the CBase derived objects from being orphaned on the heap.
Note that each call to this function results in a small, but non-trivial, amount of code being generated.