VTK
9.1.0
|
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. | |
![]() | |
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 | |
![]() | |
vtkWeakPointerBase (vtkObjectBase *r, const NoReference &) | |
![]() | |
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 55 of file vtkWeakPointer.h.
|
inlinenoexcept |
Initialize smart pointer to nullptr.
Definition at line 82 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 91 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 97 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into the new weak pointer, setting r to nullptr.
Definition at line 108 of file vtkWeakPointer.h.
|
inlinenoexcept |
Initialize smart pointer with the given smart pointer.
Definition at line 114 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer to given object.
Definition at line 125 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 132 of file vtkWeakPointer.h.
|
inlineprotected |
Get the contained pointer.
Definition at line 243 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 143 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 150 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into this weak pointer, setting r to nullptr.
Definition at line 163 of file vtkWeakPointer.h.
|
inlinenoexcept |
Move r's object into this weak pointer, setting r to nullptr.
Definition at line 170 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 183 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 191 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 204 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 205 of file vtkWeakPointer.h.
|
inlinenoexcept |
Get the contained pointer.
Definition at line 206 of file vtkWeakPointer.h.
|
inlinenoexcept |
Dereference the pointer and return a reference to the contained object.
Definition at line 212 of file vtkWeakPointer.h.
|
inlinenoexcept |
Provides normal pointer target member access using operator ->.
Definition at line 217 of file vtkWeakPointer.h.