VTK
|
a weak reference to a vtkObject. More...
#include <vtkWeakPointer.h>
Public Member Functions | |
vtkWeakPointer () | |
Initialize smart pointer to NULL. More... | |
vtkWeakPointer (T *r) | |
Initialize smart pointer to given object. More... | |
vtkWeakPointer (const vtkWeakPointerBase &r) | |
Initialize smart pointer with the given smart pointer. More... | |
operator T * () const | |
Get the contained pointer. More... | |
T & | operator* () const |
Dereference the pointer and return a reference to the contained object. More... | |
T * | operator-> () const |
Provides normal pointer target member access using operator ->. More... | |
vtkWeakPointer & | operator= (T *r) |
Assign object to reference. More... | |
vtkWeakPointer & | operator= (const vtkWeakPointerBase &r) |
Assign object to reference. More... | |
T * | GetPointer () const |
Get the contained pointer. More... | |
T * | Get () const |
Get the contained pointer. More... | |
Public Member Functions inherited from vtkWeakPointerBase | |
vtkWeakPointerBase () | |
Initialize smart pointer to NULL. More... | |
vtkWeakPointerBase (vtkObjectBase *r) | |
Initialize smart pointer to given object. More... | |
vtkWeakPointerBase (const vtkWeakPointerBase &r) | |
Initialize weak pointer . 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... | |
Protected Member Functions | |
vtkWeakPointer (T *r, const NoReference &n) | |
Protected Member Functions inherited from vtkWeakPointerBase | |
vtkWeakPointerBase (vtkObjectBase *r, const NoReference &) | |
Additional Inherited Members | |
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 NULL, 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 52 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer to NULL.
Definition at line 58 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer to given object.
Definition at line 63 of file vtkWeakPointer.h.
|
inline |
Initialize smart pointer with the given smart pointer.
Definition at line 68 of file vtkWeakPointer.h.
|
inlineprotected |
Definition at line 154 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 74 of file vtkWeakPointer.h.
|
inline |
Assign object to reference.
Definition at line 85 of file vtkWeakPointer.h.
|
inline |
Get the contained pointer.
Definition at line 96 of file vtkWeakPointer.h.
|
inline |
Get the contained pointer.
Definition at line 100 of file vtkWeakPointer.h.
|
inline |
Get the contained pointer.
Definition at line 109 of file vtkWeakPointer.h.
|
inline |
Dereference the pointer and return a reference to the contained object.
Definition at line 118 of file vtkWeakPointer.h.
|
inline |
Provides normal pointer target member access using operator ->.
Definition at line 126 of file vtkWeakPointer.h.