CleanupClose Class Reference

class CleanupClose

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

CleanupClosePushL()

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

Member Functions Documentation

Close(TAny *)

voidClose(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 Close() on this object.

PushL(T &)

voidPushL(T &aRef)[static, inline]

Creates a TCleanupItem for the specified object.

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

Parameters

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