Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

look::LookTidier Class Template Reference

An cut-down implementation of std::auto_ptr. More...

#include <lktidier.h>

List of all members.

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.


Detailed Description

template<class tBody> class look::LookTidier

An cut-down implementation of std::auto_ptr.

There isn't any of the copying confusion of std::auto_ptr.


Constructor & Destructor Documentation

template<class tBody>
look::LookTidier<tBody>::LookTidier<tBody> ( tBody * theThing ) [inline]
 

Constructor.

The tidier takes responsibility for deleting theThing, which must be on the heap. (allocated via new).

Parameters:
theThing   Can safely be 0 (NULL).

template<class tBody>
look::LookTidier<tBody>::~LookTidier<tBody> ( ) [inline]
 

Destructor.

If it still has itsThing, it deletes it.


Member Function Documentation

template<class tBody>
void look::LookTidier<tBody>::Release ( void ) [inline]
 

Release.

Throw away our pointer to itsThing, thus relinquishing responsibility for deleting it.


The documentation for this class was generated from the following file:
Generated at Thu Jan 17 12:53:09 2002 for liblookdb by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001