Location:
e32base.h
Link against: Not applicable.
TCleanupItem
Supported from 5.0
Constructs a TCleanupItem
object to be added to the
cleanup stack. A TCleanupItem
allows the concept of cleanup to be
generalised. A TCleanupItem
object encapsulates a cleanup
operation and an object on which the operation is to be performed.
Cleanup often requires more sophistication than simply deleting objects. For example, releasing access to some commonly used resource.
Defined in TCleanupItem
:
TCleanupItem()
TCleanupItem(TCleanupOperation anOperation);
Constructs the TCleanupItem
with the
TCleanupOperation
anOperation
.
The cleanup operation, defined by the function
anOperation
, is invoked by the pop and destroy action resulting
from a subsequent call to
CleanupStack::PopAndDestroy()
.
|
TCleanupItem(TCleanupOperation anOperation);
TCleanupItem(TCleanupOperation anOperation,TAny* aPtr);
Constructs the TCleanupItem
with a
TCleanupOperation
object and an untyped pointer to an object to be
cleaned up.
The cleanup operation, defined by the function
anOperation
, is invoked by the pop and destroy action resulting
from a subsequent call to
CleanupStack::PopAndDestroy()
.
|