VTK
9.4.20241222
|
a weak reference to a vtkObject. More...
#include <vtkWeakPointer.h>
Public Member Functions | |
vtkWeakPointer () noexcept | |
Initialize smart pointer to nullptr. | |
vtkWeakPointer (const vtkWeakPointer &r) | |
Initialize smart pointer with the given smart pointer. | |
template<class U > | |
vtkWeakPointer (const vtkWeakPointer< U > &r) | |
Initialize smart pointer with the given smart pointer. | |
vtkWeakPointer (vtkWeakPointer &&r) noexcept | |
Move r's object into the new weak pointer, setting r to nullptr. | |
template<class U > | |
vtkWeakPointer (vtkWeakPointer< U > &&r) noexcept | |
Initialize smart pointer with the given smart pointer. | |
vtkWeakPointer (T *r) | |
Initialize smart pointer to given object. | |
template<typename U > | |
vtkWeakPointer (const vtkNew< U > &r) | |
Initialize smart pointer with the given smart pointer. | |
vtkWeakPointer & | operator= (const vtkWeakPointer &r) |
Assign object to reference. | |
template<class U > | |
vtkWeakPointer & | operator= (const vtkWeakPointer< U > &r) |
Assign object to reference. | |
vtkWeakPointer & | operator= (vtkWeakPointer &&r) noexcept |
Move r's object into this weak pointer, setting r to nullptr. | |
template<class U > | |
vtkWeakPointer & | operator= (vtkWeakPointer< U > &&r) noexcept |
Move r's object into this weak pointer, setting r to nullptr. | |
vtkWeakPointer & | operator= (T *r) |
Assign object to reference. | |
template<typename U > | |
vtkWeakPointer & | operator= (const vtkNew< U > &r) |
Assign object to reference. | |
Public Member Functions inherited from vtkWeakPointerBase | |
vtkWeakPointerBase () noexcept | |
Initialize smart pointer to nullptr. | |
vtkWeakPointerBase (vtkObjectBase *r) | |
Initialize smart pointer to given object. | |
vtkWeakPointerBase (const vtkWeakPointerBase &r) | |
Copy r's data object into the new weak pointer. | |
vtkWeakPointerBase (vtkWeakPointerBase &&r) noexcept | |
Move r's object into the new weak pointer, setting r to nullptr. | |
~vtkWeakPointerBase () | |
Destroy smart pointer. | |
vtkObjectBase * | GetPointer () const |
Get the contained pointer. | |
vtkWeakPointerBase & | operator= (vtkObjectBase *r) |
Assign object to reference. | |
vtkWeakPointerBase & | operator= (const vtkWeakPointerBase &r) |
Assign object to reference. | |
vtkWeakPointerBase & | operator= (vtkWeakPointerBase &&r) noexcept |
Assign object to reference. | |
T * | GetPointer () const noexcept |
Get the contained pointer. | |
T * | Get () const noexcept |
Get the contained pointer. | |
operator T* () const noexcept | |
Get the contained pointer. | |
T & | operator* () const noexcept |
Dereference the pointer and return a reference to the contained object. | |
T * | operator-> () const noexcept |
Provides normal pointer target member access using operator ->. | |
vtkWeakPointer (T *r, const NoReference &n) | |
Get the contained pointer. | |
Additional Inherited Members | |
Protected Member Functions inherited from vtkWeakPointerBase | |
vtkWeakPointerBase (vtkObjectBase *r, const NoReference &) | |
Protected Attributes inherited from vtkWeakPointerBase | |
vtkObjectBase * | Object |
a weak reference to a vtkObject.
A weak reference to a vtkObject, which means that assigning a vtkObject to the vtkWeakPointer does not affect the reference count of the vtkObject. However, when the vtkObject is destroyed, the vtkWeakPointer gets initialized to nullptr, thus avoiding any dangling references.
Some time later the table may be deleted, but if it is tested for null then the weak pointer will not leave a dangling pointer.
Definition at line 47 of file vtkWeakPointer.h.
|
inlinenoexcept |
Initialize smart pointer to nullptr.
Definition at line 74 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 83 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 89 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into the new weak pointer, setting r to nullptr.
Definition at line 100 of file vtkWeakPointer.h.
|
inlinenoexcept |
Initialize smart pointer with the given smart pointer.
Definition at line 106 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer to given object.
Definition at line 117 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 124 of file vtkWeakPointer.h.
|
inlineprotected |
Get the contained pointer.
Definition at line 235 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 135 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 142 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into this weak pointer, setting r to nullptr.
Definition at line 155 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into this weak pointer, setting r to nullptr.
Definition at line 162 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 175 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 183 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 196 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 197 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 198 of file vtkWeakPointer.h.
|
inlinenoexcept |
Dereference the pointer and return a reference to the contained object.
Definition at line 204 of file vtkWeakPointer.h.
|
inlinenoexcept |
Provides normal pointer target member access using operator ->.
Definition at line 209 of file vtkWeakPointer.h.