CFx SDK Documentation 2024 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) | |
OdBaseObjectPtr (OdBaseObjectPtr &&pObject) noexcept | |
OdBaseObjectPtr & | operator= (OdBaseObjectPtr &&pObject) noexcept |
Protected Attributes inherited from OdBaseObjectPtr | |
OdRxObject * | m_pObject = nullptr |
<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 344 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 387 of file RxObject.h.
|
inline |
Definition at line 388 of file RxObject.h.
|
inline |
Definition at line 395 of file RxObject.h.
|
inline |
Definition at line 402 of file RxObject.h.
|
inline |
Definition at line 409 of file RxObject.h.
|
inline |
Destructor for the non-typified smart pointer.
Definition at line 439 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 430 of file RxObject.h.
|
inline |
Releases the smart pointer reference to the referenced object without decrementing of the reference counter.
Definition at line 466 of file RxObject.h.
|
inline |
Returns the raw pointer to the referenced object.
Definition at line 503 of file RxObject.h.
|
inline |
Definition at line 504 of file RxObject.h.
|
inline |
Definition at line 539 of file RxObject.h.
|
inline |
Returns the raw pointer of the referenced object.
Definition at line 537 of file RxObject.h.
|
inline |
Definition at line 545 of file RxObject.h.
|
inline |
Returns the raw pointer to the referenced object.
Definition at line 515 of file RxObject.h.
|
inline |
Definition at line 516 of file RxObject.h.
|
inline |
Definition at line 489 of file RxObject.h.
|
inline |
Definition at line 485 of file RxObject.h.
|
inline |
Definition at line 481 of file RxObject.h.
|
inline |
Definition at line 542 of file RxObject.h.
|
inline |
Releases the smart pointer reference to the referenced object.
Definition at line 801 of file RxObject.h.