#include <smartptr.h>
Public Member Functions | |
PSmartPtr (T *ptr=NULL) | |
Constructor. | |
T * | operator-> () const |
Access to the members of the smart object in the smart pointer. | |
T & | operator* () const |
Access to the dereferenced smart object in the smart pointer. | |
operator T * () const | |
Access to the value of the smart pointer. |
This template class creates a type safe version of PSmartPointer.
PSmartPtr< T >::operator T * | ( | ) | const [inline] |
Access to the value of the smart pointer.
References PSmartPointer::object.
T& PSmartPtr< T >::operator* | ( | ) | const [inline] |
Access to the dereferenced smart object in the smart pointer.
References PAssertNULL.
T* PSmartPtr< T >::operator-> | ( | ) | const [inline] |
Access to the members of the smart object in the smart pointer.
References PAssertNULL.