class PSmartPointer |
This is the class for pointers to objects that use the smart pointer system.
![]() | Construction |
![]() | Overrides from class PObject |
![]() | Pointer access functions |
![]() | object Object the smart pointer points to |
Run Time Type functions
I/O functions
Miscellaneous functions
Comparison functions
This is the class for pointers to objects that use the smart pointer system. In conjunction with the PSmartObject class, this class references objects that can have the automatic deletion of the object instance when there are no more smart pointer instances pointing to it.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.
The previous object being pointed to has its reference count decremented as this will no longer point to it. If there are no more references then the object is deleted.
The new object being pointed to after the assignment has its reference count incremented.
Alphabetic index HTML hierarchy of classes or Java