CFx SDK Documentation
2023 SP0
|
#include <RxObject.h>
Public Member Functions | |
OdRxObjectPtr () | |
OdRxObjectPtr (const OdRxObject *pSource, OdRxObjMod) | |
OdRxObjectPtr (const OdRxObject *pSource) | |
OdRxObjectPtr (const OdRxObjectPtr &pSource) | |
OdRxObjectPtr (const OdBaseObjectPtr &pSource) | |
void | attach (const OdRxObject *pObject) |
~OdRxObjectPtr () | |
void | release () |
OdRxObject * | detach () |
OdRxObjectPtr & | operator= (const OdRxObjectPtr &source) |
OdRxObjectPtr & | operator= (const OdRxObject *source) |
OdRxObjectPtr & | operator= (const OdBaseObjectPtr &source) |
OdRxObject * | get () |
const OdRxObject * | get () const |
OdRxObject * | operator-> () |
const OdRxObject * | operator-> () const |
operator OdRxObject * () | |
operator const OdRxObject * () const | |
bool | operator== (const OdRxObject *pObject) const |
bool | operator!= (const OdRxObject *pObject) const |
Public Member Functions inherited from OdBaseObjectPtr | |
OdRxObject * | get () const |
bool | isNull () const |
Additional Inherited Members | |
Protected Member Functions inherited from OdBaseObjectPtr | |
OdBaseObjectPtr () | |
OdBaseObjectPtr (const OdRxObject *pSource) | |
Protected Attributes inherited from OdBaseObjectPtr | |
OdRxObject * | m_pObject |
<group OdRx_Classes>
This class provides the non-typified implementation of smart pointers for instances of classes derived from the OdRxObject class.
Each object referenced by a SmartPointer (henceforth 'referenced object') maintains a reference count; i.e., how many SmartPointers are referencing it.
When the reference counter reaches zero, the referenced object is deleted.
<link smart_pointers_example_nontypified.html, Example of a Non-Typified Smart Pointer>
The OdSmartPtr class
Definition at line 363 of file RxObject.h.
|
inline |
Constructors for the non-typified smart pointer.
pSource | [in] Pointer to the specified object to be assigned for the new SmartPointer object. |
Definition at line 406 of file RxObject.h.
|
inline |
Definition at line 407 of file RxObject.h.
|
inline |
Definition at line 414 of file RxObject.h.
|
inline |
Definition at line 421 of file RxObject.h.
|
inline |
Definition at line 428 of file RxObject.h.
|
inline |
Destructor for the non-typified smart pointer.
Definition at line 458 of file RxObject.h.
|
inline |
Assigns the pointer of the specifed object to the smart pointer without incrementing its reference counter.
pObject | [in] Pointer to the specified object to be assigned. |
If this SmartPointer is currently referencing another object, that object is released prior to the assignment.
Definition at line 449 of file RxObject.h.
|
inline |
Releases the smart pointer reference to the referenced object without decrementing of the reference counter.
Definition at line 485 of file RxObject.h.
|
inline |
Returns the raw pointer to the referenced object.
Definition at line 522 of file RxObject.h.
|
inline |
Definition at line 523 of file RxObject.h.
|
inline |
Definition at line 558 of file RxObject.h.
|
inline |
Returns the raw pointer of the referenced object.
Definition at line 556 of file RxObject.h.
|
inline |
Definition at line 564 of file RxObject.h.
|
inline |
Returns the raw pointer to the referenced object.
Definition at line 534 of file RxObject.h.
|
inline |
Definition at line 535 of file RxObject.h.
|
inline |
Definition at line 508 of file RxObject.h.
|
inline |
Definition at line 504 of file RxObject.h.
|
inline |
Definition at line 500 of file RxObject.h.
|
inline |
Definition at line 561 of file RxObject.h.
|
inline |
Releases the smart pointer reference to the referenced object.
Definition at line 826 of file RxObject.h.