TCleanupItem Class Reference

#include <e32base.h>

class TCleanupItem
Public Member Functions
TCleanupItem(TCleanupOperation, TAny *)

Detailed Description

Encapsulates a cleanup operation and an object on which the operation is to be performed.

The class allows cleanup to be more sophisticated than simply deleting objects, for example, releasing access to some shared resource.

Constructor & Destructor Documentation

TCleanupItem ( TCleanupOperation, TAny * )

TAny *aPtr = 0

Constructs the object with a cleanup operation and a pointer to the object to be cleaned up.

anOperationA cleanup operation which will be invoked by the pop and destroy action resulting from a subsequent call to CleanupStack::PopAndDestroy().
aPtrA pointer to an object which is the target of the cleanup operation. Defaults to NULL if not supplied.