EPOC   SDK Home Glossary Indexes Previous   Up

CleanupRelease<class T> class


Contents


CleanupRelease<class T> class — Support for the CleanupDeleteReleasePushL()

Section Contents


Overview

Derivation

Not applicable

Defined in

e32base.h

Description

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

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

Arguments

T& aRef

A reference to a <class T> type object.


Release() — The cleanup operation

private: static void Release(TAny *aPtr);

Description

The cleanup operation; it assumes that the object at aPtr is of type <class T> and calls its Release() 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 Release() member function it to be called; the object is assumed to be of type <class T>

EPOC       SDK Home Glossary Indexes Previous   Up