|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Automatically calls Close() on an object when that object goes out of scope. More...
#include <e32base.h>
Public Member Functions | |
| ~TAutoClose () | |
| Destructor. | |
| void | PushL () |
| Pushes a cleanup item onto the cleanup stack, so that Close() is called on the templated class object, iObj, if a leave occurs. | |
| void | Pop () |
| Pops a single cleanup item from the cleanup stack. | |
Public Attributes | |
| T | iObj |
| An instance of the template class. | |
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.
|
inline |
Destructor.
The implementation calls Close() on iObj, the instance of the template class.
(generated from Symbian Developer Library)
|
inline |
Pops a single cleanup item from the cleanup stack.
(generated from Symbian Developer Library)
|
inline |
Pushes a cleanup item onto the cleanup stack, so that Close() is called on the templated class object, iObj, if a leave occurs.
(generated from Symbian Developer Library)
| T TAutoClose< T >::iObj |