#include <AutoPointer.hpp>

Public Member Functions | |
| operator PointedType * () const | |
| AutoPointer< PointedType > & | operator= (PointedType *p) |
| AutoPointer< PointedType > & | operator= (const AutoPointer< PointedType > &ap) |
| AutoPointer () | |
| AutoPointer (const AutoPointer< PointedType > &ap) | |
| AutoPointer (PointedType *p) | |
| ~AutoPointer () | |
Private Attributes | |
| PointedType * | __pointer |
Definition at line 24 of file AutoPointer.hpp.
| AutoPointer< PointedType >::AutoPointer | ( | ) | [inline] |
| AutoPointer< PointedType >::AutoPointer | ( | const AutoPointer< PointedType > & | ap | ) | [inline] |
| AutoPointer< PointedType >::AutoPointer | ( | PointedType * | p | ) | [inline] |
| AutoPointer< PointedType >::~AutoPointer | ( | ) | [inline] |
| AutoPointer< PointedType >::operator PointedType * | ( | ) | const [inline] |
Definition at line 30 of file AutoPointer.hpp.
References AutoPointer< PointedType >::__pointer.
00031 { 00032 return __pointer; 00033 }
| AutoPointer<PointedType>& AutoPointer< PointedType >::operator= | ( | PointedType * | p | ) | [inline] |
Definition at line 35 of file AutoPointer.hpp.
References AutoPointer< PointedType >::__pointer.
00036 { 00037 if(__pointer != 0) 00038 delete __pointer; 00039 __pointer = p; 00040 return *this; 00041 }
| AutoPointer<PointedType>& AutoPointer< PointedType >::operator= | ( | const AutoPointer< PointedType > & | ap | ) | [inline] |
PointedType* AutoPointer< PointedType >::__pointer [private] |
Definition at line 27 of file AutoPointer.hpp.
Referenced by AutoPointer< PointedType >::operator PointedType *(), AutoPointer< PointedType >::operator=(), and AutoPointer< PointedType >::~AutoPointer().
1.5.6