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 | ( | ) |
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.