CleanupRelease Class Reference

class CleanupRelease

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

CleanupReleasePushL()

Public Member Functions
voidPushL(T &)
Private Member Functions
voidRelease(TAny *)

Member Functions Documentation

PushL(T &)

voidPushL(T &aRef)[static, inline]

Creates a TCleanupItem for the specified object.

The cleanup operation is the private static function Release() of this class.

Parameters

T & aRefThe object for which a TCleanupItem is to be constructed.

Release(TAny *)

voidRelease(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 calls Release() on this object.