class TCleanupItem |
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.
Public Member Functions | |
---|---|
TCleanupItem(TCleanupOperation) | |
TCleanupItem(TCleanupOperation, TAny *) |
Private Attributes | |
---|---|
TCleanupOperation | iOperation |
TAny * | iPtr |
TCleanupItem | ( | TCleanupOperation | anOperation | ) | [inline] |
Constructs the object with a cleanup operation.
TCleanupOperation anOperation | A cleanup operation which will be invoked by the pop and destroy action resulting from a subsequent call to CleanupStack::PopAndDestroy(). |
TCleanupItem | ( | TCleanupOperation | anOperation, |
TAny * | aPtr | ||
) | [inline] |
Constructs the object with a cleanup operation and a pointer to the object to be cleaned up.
TCleanupOperation anOperation | A cleanup operation which will be invoked by the pop and destroy action resulting from a subsequent call to CleanupStack::PopAndDestroy(). |
TAny * aPtr | A pointer to an object which is the target of the cleanup operation. |