CleanupDelete Class Reference

class CleanupDelete

A utility class used by the templated function CleanupDeletePushL() to create a TCleanupItem item that will perform a delete type operation on the class T type object.

CleanupDeletePushL()

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

Member Functions Documentation

Delete(TAny *)

voidDelete(TAny *aPtr)[private, static]

The cleanup operation to be performed.

Parameters

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

PushL(T *)

voidPushL(T *aPtr)[static, inline]

Creates a TCleanupItem for the specified object.

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

Parameters

T * aPtrThe object for which a TCleanupItem is to be constructed.