IBR-DTNSuite 0.6

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)
virtual ~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 31 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:
pointerA pointer which should be deleted.

Definition at line 39 of file AutoDelete.h.

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

Destruktor of AutoPointer. This method deletes the given pointer.

Returns:

Definition at line 45 of file AutoDelete.h.


The documentation for this class was generated from the following file: