VTK
9.1.0
|
a weak reference to a vtkObject. More...
#include <vtkWeakPointer.h>
Public Member Functions | |
vtkWeakPointer () noexcept | |
Initialize smart pointer to nullptr. More... | |
vtkWeakPointer (const vtkWeakPointer &r) | |
Initialize smart pointer with the given smart pointer. More... | |
template<class U > | |
vtkWeakPointer (const vtkWeakPointer< U > &r) | |
Initialize smart pointer with the given smart pointer. More... | |
vtkWeakPointer (vtkWeakPointer &&r) noexcept | |
Move r's object into the new weak pointer, setting r to nullptr. More... | |
template<class U > | |
vtkWeakPointer (vtkWeakPointer< U > &&r) noexcept | |
Initialize smart pointer with the given smart pointer. More... | |
vtkWeakPointer (T *r) | |
Initialize smart pointer to given object. More... | |
template<typename U > | |
vtkWeakPointer (const vtkNew< U > &r) | |
Initialize smart pointer with the given smart pointer. More... | |
vtkWeakPointer & | operator= (const vtkWeakPointer &r) |
Assign object to reference. More... | |
template<class U > | |
vtkWeakPointer & | operator= (const vtkWeakPointer< U > &r) |
Assign object to reference. More... | |
vtkWeakPointer & | operator= (vtkWeakPointer &&r) noexcept |
Move r's object into this weak pointer, setting r to nullptr. More... | |
template<class U > | |
vtkWeakPointer & | operator= (vtkWeakPointer< U > &&r) noexcept |
Move r's object into this weak pointer, setting r to nullptr. More... | |
vtkWeakPointer & | operator= (T *r) |
Assign object to reference. More... | |
template<typename U > | |
vtkWeakPointer & | operator= (const vtkNew< U > &r) |
Assign object to reference. More... | |
Public Member Functions inherited from vtkWeakPointerBase | |
vtkWeakPointerBase () noexcept | |
Initialize smart pointer to nullptr. More... | |
vtkWeakPointerBase (vtkObjectBase *r) | |
Initialize smart pointer to given object. More... | |
vtkWeakPointerBase (const vtkWeakPointerBase &r) | |
Copy r's data object into the new weak pointer. More... | |
vtkWeakPointerBase (vtkWeakPointerBase &&r) noexcept | |
Move r's object into the new weak pointer, setting r to nullptr. More... | |
~vtkWeakPointerBase () | |
Destroy smart pointer. More... | |
vtkObjectBase * | GetPointer () const |
Get the contained pointer. More... | |
vtkWeakPointerBase & | operator= (vtkObjectBase *r) |
Assign object to reference. More... | |
vtkWeakPointerBase & | operator= (const vtkWeakPointerBase &r) |
Assign object to reference. More... | |
vtkWeakPointerBase & | operator= (vtkWeakPointerBase &&r) noexcept |
Assign object to reference. More... | |
T * | GetPointer () const noexcept |
Get the contained pointer. More... | |
T * | Get () const noexcept |
Get the contained pointer. More... | |
operator T* () const noexcept | |
Get the contained pointer. More... | |
T & | operator* () const noexcept |
Dereference the pointer and return a reference to the contained object. More... | |
T * | operator-> () const noexcept |
Provides normal pointer target member access using operator ->. More... | |
vtkWeakPointer (T *r, const NoReference &n) | |
Get the contained pointer. More... | |
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 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.