The Pedigree Project
0.1
|
#include <PointerGuard.h>
Public Member Functions | |
PointerGuard (T *p=0, bool bArray=false) | |
PointerGuard (T **p=0, bool bArray=false) | |
PointerGuard (PointerGuard< T > &p) | |
PointerGuard< T > & | operator= (PointerGuard< T > &p) |
Private Attributes | |
T * | m_Pointer |
T ** | m_Wrapper |
bool | m_Array |
Provides a guard for a pointer. When the class goes out of scope the pointer will automatically be freed.
Definition at line 30 of file PointerGuard.h.
|
inline |
Neither of these should be used, as they defeat the purpose (and will cause a dual delete of the pointer)
Definition at line 70 of file PointerGuard.h.
References ERROR.