#include <lktidier.h>
Public Methods | |
| LookTidier (tBody *theThing) | |
| Constructor. More... | |
| ~LookTidier () | |
| Destructor. More... | |
| void | Release (void) |
| Release. More... | |
Protected Attributes | |
| tBody* | itsThing |
| Pointer to the object we will delete. | |
There isn't any of the copying confusion of std::auto_ptr.
|
||||
|
Constructor. The tidier takes responsibility for deleting theThing, which must be on the heap. (allocated via new).
|
|
||||
|
Destructor. If it still has itsThing, it deletes it. |
|
||||
|
Release. Throw away our pointer to itsThing, thus relinquishing responsibility for deleting it. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001