The Pedigree Project  0.1
Public Member Functions | Private Attributes | List of all members
PointerGuard< T > Class Template Reference

#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
 

Detailed Description

template<class T>
class PointerGuard< T >

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.

Constructor & Destructor Documentation

template<class T>
PointerGuard< T >::PointerGuard ( PointerGuard< T > &  p)
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.


The documentation for this class was generated from the following file: