CCleanup Class Reference

class CCleanup : public CBase

Implements the cleanup stack.

An object of this type is created and used by the cleanup stack interface, CTrapCleanup.

Inherits from

Public Member Functions
~CCleanup()
IMPORT_C voidCheck(TAny *)
IMPORT_C CCleanup *New()
IMPORT_C CCleanup *NewL()
IMPORT_C voidNextLevel()
IMPORT_C voidPop()
IMPORT_C voidPop(TInt)
IMPORT_C voidPopAll()
IMPORT_C voidPopAndDestroy()
IMPORT_C voidPopAndDestroy(TInt)
IMPORT_C voidPopAndDestroyAll()
IMPORT_C voidPreviousLevel()
IMPORT_C voidPushL(TAny *)
IMPORT_C voidPushL(CBase *)
IMPORT_C voidPushL(TCleanupItem)
Protected Member Functions
CCleanup()
IMPORT_C voidDoPop(TInt, TBool)
IMPORT_C voidDoPopAll(TBool)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TCleanupStackItem *iBase
TCleanupStackItem *iNext
TCleanupStackItem *iTop

Constructor & Destructor Documentation

CCleanup()

IMPORT_CCCleanup()[protected]

~CCleanup()

IMPORT_C~CCleanup()

Member Functions Documentation

Check(TAny *)

IMPORT_C voidCheck(TAny *aExpectedItem)

Parameters

TAny * aExpectedItem

DoPop(TInt, TBool)

IMPORT_C voidDoPop(TIntaCount,
TBoolaDestroy
)[protected]

Parameters

TInt aCount
TBool aDestroy

DoPopAll(TBool)

IMPORT_C voidDoPopAll(TBoolaDestroy)[protected]

Parameters

TBool aDestroy

New()

IMPORT_C CCleanup *New()[static]

NewL()

IMPORT_C CCleanup *NewL()[static]

NextLevel()

IMPORT_C voidNextLevel()

Pop()

IMPORT_C voidPop()

Pop(TInt)

IMPORT_C voidPop(TIntaCount)

Parameters

TInt aCount

PopAll()

IMPORT_C voidPopAll()

PopAndDestroy()

IMPORT_C voidPopAndDestroy()

PopAndDestroy(TInt)

IMPORT_C voidPopAndDestroy(TIntaCount)

Parameters

TInt aCount

PopAndDestroyAll()

IMPORT_C voidPopAndDestroyAll()

PreviousLevel()

IMPORT_C voidPreviousLevel()

PushL(TAny *)

IMPORT_C voidPushL(TAny *aPtr)

Parameters

TAny * aPtr

PushL(CBase *)

IMPORT_C voidPushL(CBase *anObject)

Parameters

CBase * anObject

PushL(TCleanupItem)

IMPORT_C voidPushL(TCleanupItemanItem)

Parameters

TCleanupItem anItem

Member Data Documentation

TCleanupStackItem * iBase

TCleanupStackItem *iBase[protected]

Pointer to the bottom of the cleanup stack.

TCleanupStackItem * iNext

TCleanupStackItem *iNext[protected]

Pointer to the next availaible slot in the cleanup stack.

TCleanupStackItem * iTop

TCleanupStackItem *iTop[protected]

Pointer to the top of the cleanup stack.