PropaneSmartPointer< T > Class Template Reference

A reference-counted smart pointer from Enginuity. More...

#include <PropaneSmartPointer.h>

List of all members.

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.


Detailed Description

template<class T>
class PropaneSmartPointer< T >

A reference-counted smart pointer from Enginuity.


The documentation for this class was generated from the following file:
Generated on Thu Aug 31 20:26:03 2006 for Propane Injector by  doxygen 1.4.7