EPOC   SDK Home Glossary Indexes Previous Next Up

CleanupDelete<class T> class


Contents


CleanupDelete<class T> class — Support for the CleanupDeletePushL()

Section Contents


Overview

Derivation

Not applicable

Defined in

e32base.h

Description

The class supports and implements the operation of the templated function CleanupDeletePushL(). It contains static functions and is not intended to be instantiated.


Cleanup support functions


PushL() — Construct TCleanupItem and push onto cleanup stack

static void PushL(T* aPtr);

Description

The function is called by the templated function CleanupDeletePushL().

It constructs a TCleanupItem for the <class T> type object at aPtr specifying the cleanup operation which is the Delete() static private member function of this class.

Arguments

T* aPtr

A pointer to a <class T> type object.


Delete() — The cleanup operation

private: static void Delete(TAny *aPtr);

Description

The cleanup operation; deletes the object at aPtr.

The function is invoked when clean up is requested for the associated cleanup item.

Arguments

TAny* aPtr

A pointer to the object to be deleted

EPOC       SDK Home Glossary Indexes Previous Next Up