#include <PropaneSmartPointer.h>
Public Member Functions | |
| PropaneSmartPointer () | |
| Construct by default with no pointed object. | |
| PropaneSmartPointer (T *obj) | |
| Construct by default with a raw pointer to an object. | |
| PropaneSmartPointer (const PropaneSmartPointer< T > &p) | |
| Construct with a smart pointer to an object. | |
| ~PropaneSmartPointer () | |
| Destroy the pointed-to object. | |
| int | operator= (T *o2) |
| Assign a raw object pointer to this one, releasing the old pointee first. | |
| int | operator= (const PropaneSmartPointer< T > &p) |
| Assign the contents of another smart pointer to this one, releasing the original pointee. | |
| T & | operator * () const |
| Dereference the pointee. | |
| T * | operator-> () const |
| Dereference the pointee. | |
| operator T * () const | |
| Convert the pointee to a raw pointer. | |
| bool | isValid () const |
| Check to make sure the pointee is not null. | |
| bool | operator! () |
| Check to make sure the pointee is not 0. | |
| bool | operator== (const PropaneSmartPointer< T > &p) |
| Check equality of the pointee with another smart pointer's pointee. | |
| bool | operator== (const T *o2) const |
| Check equality of the pointee with a raw pointer. | |
Protected Attributes | |
| T * | o |
| The object we point to. | |
1.4.7