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

look::LookArrayTidier Class Template Reference

An cut-down implementation of std::autoptr for arrays. More...

#include <lktidier.h>

List of all members.

Public Methods

 LookArrayTidier (tBody *theThing)
 Constructor. More...

 ~LookArrayTidier ()
 Destructor. More...

void Release (void)
 Release. More...


Protected Attributes

tBody* itsThing
 Pointer to the array we will delete.


Detailed Description

template<class tBody> class look::LookArrayTidier

An cut-down implementation of std::autoptr for arrays.

Much like LookTidier.

(Why isn't there one in the standard library?)


Constructor & Destructor Documentation

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

Constructor.

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

Parameters:
theThing   Can safely be 0 (NULL).

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

Destructor.

If it still has itsThing, it delete[]s it.


Member Function Documentation

template<class tBody>
void look::LookArrayTidier<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:08 2002 for liblookdb by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001