ibrcommon::AutoDelete< T > Class Template Reference

Automatic deletion of pointer object. More...

#include <AutoDelete.h>

List of all members.

Public Member Functions

 AutoDelete (T *pointer)
 ~AutoDelete ()

Detailed Description

template<class T>
class ibrcommon::AutoDelete< T >

Automatic deletion of pointer object.

An AutoDelete class delete a given pointer when the object gets destroyed. This helps to cleanup pointer when leaving a context.

Definition at line 22 of file AutoDelete.h.


Constructor & Destructor Documentation

template<class T>
ibrcommon::AutoDelete< T >::AutoDelete ( T *  pointer  )  [inline]

Creates a AutoDelete object. The given pointer will be deleted when the AutoDelete object gets destroyed.

Parameters:
pointer A pointer which should be deleted.

Definition at line 30 of file AutoDelete.h.

template<class T>
ibrcommon::AutoDelete< T >::~AutoDelete (  )  [inline]

Destruktor of AutoPointer. This method deletes the given pointer.

Returns:

Definition at line 36 of file AutoDelete.h.


The documentation for this class was generated from the following file:
Generated on Mon Aug 23 08:13:00 2010 for IBR-DTNSuite by  doxygen 1.6.3