CleanupArrayDelete Class Reference

class CleanupArrayDelete

A utility class used by the templated function CleanupArrayDeletePushL() to create a TCleanupItem item that will perform a delete type operation on an array of class T type objects.

CleanupArrayDeletePushL()

Public Member Functions
voidPushL(T *)
Private Member Functions
voidArrayDelete(TAny *)

Member Functions Documentation

ArrayDelete(TAny *)

voidArrayDelete(TAny *aPtr)[private, static]

The cleanup operation to be performed.

Parameters

TAny * aPtrA pointer to the array for which clean up is to be performed. The implementation deletes this array.

PushL(T *)

voidPushL(T *aPtr)[static, inline]

Creates a TCleanupItem for the specified array.

The cleanup operation is the private static function ArrayDelete() of this class, which deletes the specified array.

Parameters

T * aPtrThe array of class T type objects for which a TCleanupItem is to be constructed.