VTK
9.1.0
|
Non-templated superclass for vtkWeakPointer. More...
#include <vtkWeakPointerBase.h>
Classes | |
class | NoReference |
Public Member Functions | |
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... | |
Protected Member Functions | |
vtkWeakPointerBase (vtkObjectBase *r, const NoReference &) | |
Protected Attributes | |
vtkObjectBase * | Object |
Friends | |
class | vtkObjectBaseToWeakPointerBaseFriendship |
Non-templated superclass for vtkWeakPointer.
vtkWeakPointerBase holds a pointer to a vtkObjectBase or subclass instance, but it never affects the reference count of the vtkObjectBase. However, when the vtkObjectBase referred to is destroyed, the pointer gets initialized to nullptr, thus avoid dangling references.
Definition at line 33 of file vtkWeakPointerBase.h.
|
inlinenoexcept |
Initialize smart pointer to nullptr.
Definition at line 39 of file vtkWeakPointerBase.h.
vtkWeakPointerBase::vtkWeakPointerBase | ( | vtkObjectBase * | r | ) |
Initialize smart pointer to given object.
vtkWeakPointerBase::vtkWeakPointerBase | ( | const vtkWeakPointerBase & | r | ) |
Copy r's data object into the new weak pointer.
|
noexcept |
Move r's object into the new weak pointer, setting r to nullptr.
vtkWeakPointerBase::~vtkWeakPointerBase | ( | ) |
Destroy smart pointer.
|
protected |
vtkWeakPointerBase & vtkWeakPointerBase::operator= | ( | vtkObjectBase * | r | ) |
Assign object to reference.
This removes any reference to an old object.
vtkWeakPointerBase & vtkWeakPointerBase::operator= | ( | const vtkWeakPointerBase & | r | ) |
Assign object to reference.
This removes any reference to an old object.
|
noexcept |
Assign object to reference.
This removes any reference to an old object.
|
inline |
Get the contained pointer.
Definition at line 77 of file vtkWeakPointerBase.h.
|
friend |
Definition at line 85 of file vtkWeakPointerBase.h.
|
protected |
Definition at line 95 of file vtkWeakPointerBase.h.