Inheritance diagram for PSmartPointer: Public Member Functions
|PSmartPointer (PSmartObject *obj=NULL)| |PSmartPointer (const
PSmartPointer &ptr)| |PSmartPointer &||operator= (const
PSmartPointer &ptr)| Overrides from class PObject |virtual
Comparison||Compare (const PObject &obj) const| Pointer access
functions |PBoolean||IsNULL () const| |PSmartObject *||GetObject
() const| |Object the smart pointer points to. | A PSmartPointer
carries the pointer to a PSmartObject# instance which contains a
reference count. Assigning or copying instances of smart
pointers will automatically increment and decrement the
reference count. When the last instance that references a
PSmartObject# instance is destroyed or overwritten, the
PSmartObject# is deleted. A NULL value is possible for a smart
pointer. It can be detected via the IsNULL()# function.
|PSmartPointer::PSmartPointer||(||PSmartObject *|| obj = Create
a new smart pointer instance and have it point to the specified
PSmartObject# instance. |obj||Smart object to point