• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ibrcommon/ibrcommon/AutoDelete.h

Go to the documentation of this file.
00001 /*
00002  * AutoDelete.h
00003  *
00004  *  Created on: 12.02.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef AUTODELETE_H_
00009 #define AUTODELETE_H_
00010 
00011 namespace ibrcommon
00012 {
00021         template < class T >
00022         class AutoDelete
00023         {
00024         public:
00030                 AutoDelete(T *pointer) : _pointer(pointer) {};
00031 
00036                 virtual ~AutoDelete() { delete _pointer; };
00037 
00038         private:
00039                 T *_pointer;
00040         };
00041 }
00042 
00043 
00044 #endif /* AUTODELETE_H_ */

Generated on Wed Mar 30 2011 11:11:49 for IBR-DTNSuite by  doxygen 1.7.1