This template class provides the typified implementation of smart pointers for instances of classes derived from the OdRxObject class.
SmartPointers relieve the programmer of having to determine when objects are no longer needed, or having to delete them them at that time.
Each object referenced by a SmartPointer (henceforth 'referenced object') maintains a reference count; i.e., how many SmartPointers are referencing it. When the reference count reaches zero, the referenced object is deleted.
File: SmartPtr.h
Module: API Reference
TD_Db
Example of Assigning Smart Pointers
Example of a Typified Smart Pointer
Overview of Smart Pointer Classes
The OdRxObjectPtr class
This is the overview for the OdSmartPtr constructor overload. | |
Destructor for the typified smart pointer. |
This is the overview for the attach method overload. | |
Releases the smart pointer reference to the referenced object without decrementing of the reference counter. | |
Returns the raw pointer to the referenced object. (Inherited from OdBaseObjectPtr) | |
This is the overview for the get method overload. | |
Returns true if and only if the smart pointer stores a NULL. (Inherited from OdBaseObjectPtr) | |
Releases the smart pointer reference to the referenced object. |
Returns true if and only if the smart pointer stores a NULL. | |
This is the overview for the != operator overload. | |
This is the overview for the -> operator overload. | |
This is the overview for the = operator overload. | |
This is the overview for the == operator overload. | |
This is the overview for the T* operator overload. | |
Returns true if and only if the smart pointer stores a non-null pointer. | |
|
Copyright © 2002-2022. Open Design Alliance All rights reserved.
|