Automatic deletion of pointer object. More...
#include <AutoDelete.h>
Public Member Functions | |
| AutoDelete (T *pointer) | |
| ~AutoDelete () | |
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.
| ibrcommon::AutoDelete< T >::AutoDelete | ( | T * | pointer | ) | [inline] |
Creates a AutoDelete object. The given pointer will be deleted when the AutoDelete object gets destroyed.
| pointer | A pointer which should be deleted. |
Definition at line 30 of file AutoDelete.h.
| ibrcommon::AutoDelete< T >::~AutoDelete | ( | ) | [inline] |
Destruktor of AutoPointer. This method deletes the given pointer.
Definition at line 36 of file AutoDelete.h.
1.6.3