|
The Pedigree Project 0.1
|
#include <PointerGuard.h>
Collaboration diagram for PointerGuard< T >: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 |
Definition at line 32 of file PointerGuard.h.
|
inline |
Definition at line 37 of file PointerGuard.h.
|
inlinevirtual |
Definition at line 42 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 62 of file PointerGuard.h.
|
inline |
Definition at line 68 of file PointerGuard.h.
|
private |
Definition at line 77 of file PointerGuard.h.
|
private |
Definition at line 75 of file PointerGuard.h.
|
private |
Definition at line 76 of file PointerGuard.h.