EPOC   SDK Home Glossary Indexes Previous Next Up

CleanupClose<class T> Class


Contents


CleanupClose<class T> class — Support for the CleanupDeleteClosePushL() function

Section Contents


Overview

Derivation

Not applicable

Defined in

e32base.h

Description

The class supports and implements the operation of the templated function CleanupClosePushL(). 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 CleanupClosePushL().

It constructs a TCleanupItem for the <class T> type object referenced by aRef specifying the cleanup operation which is the Close() static private member function of this class.

Arguments

T& aRef

A reference to a <class T> type object.


Close() — The cleanup operation

private: static void Close(TAny *aPtr);

Description

The cleanup operation; it assumes that the object at aPtr is of type <class T> and calls its Close() member function.

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

Arguments

TAny* aPtr

A pointer to the object whose Close() member function is to be called; the object is assumed to be of type <class T>.

EPOC       SDK Home Glossary Indexes Previous Next Up