Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32base.h

Class CArrayPtr

class CArrayPtr : public CArrayFix< T * >;

Description

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.

Derivation

Members

Defined in CArrayPtr:
ResetAndDestroy()


Member functions


ResetAndDestroy()

void ResetAndDestroy();

Description

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.