#include <e32base.h>
class TAutoClose |
Public Attributes | |
---|---|
T | iObj |
Public Member Functions | |
---|---|
~TAutoClose() | |
void | Pop() |
void | PushL() |
Automatically calls Close() on an object when that object goes out of scope.
The behaviour takes advantage of the fact that the compiler automatically destroys objects that go out of scope.
~TAutoClose | ( | ) | [inline] |
Destructor.
The implementation calls Close() on iObj, the instance of the template class.
void | PushL | ( | ) | [inline] |
Pushes a cleanup item onto the cleanup stack, so that Close() is called on the templated class object, iObj, if a leave occurs.