VTK
|
Non-templated superclass for vtkWeakPointer. More...
#include <vtkWeakPointerBase.h>
Classes | |
class | NoReference |
Public Member Functions | |
vtkWeakPointerBase () | |
vtkWeakPointerBase (vtkObjectBase *r) | |
vtkWeakPointerBase (const vtkWeakPointerBase &r) | |
~vtkWeakPointerBase () | |
vtkWeakPointerBase & | operator= (vtkObjectBase *r) |
vtkWeakPointerBase & | operator= (const vtkWeakPointerBase &r) |
vtkObjectBase * | GetPointer () const |
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 NULL, thus avoid dangling references.
Definition at line 32 of file vtkWeakPointerBase.h.
vtkWeakPointerBase::vtkWeakPointerBase | ( | ) | [inline] |
Initialize smart pointer to NULL.
Definition at line 36 of file vtkWeakPointerBase.h.
Initialize smart pointer to given object.
vtkWeakPointerBase::vtkWeakPointerBase | ( | const vtkWeakPointerBase & | r | ) |
Initialize weak pointer .
Destroy smart pointer.
vtkWeakPointerBase::vtkWeakPointerBase | ( | vtkObjectBase * | r, |
const NoReference & | |||
) | [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.
Reimplemented in vtkWeakPointer< T >, vtkWeakPointer< vtkRenderer >, vtkWeakPointer< vtkViewport >, vtkWeakPointer< vtkWindow >, vtkWeakPointer< vtkContext2D >, vtkWeakPointer< vtkRenderWindow >, vtkWeakPointer< vtkContextScene >, vtkWeakPointer< vtkAxisActor >, vtkWeakPointer< vtkPiecewiseFunction >, vtkWeakPointer< vtkOpenGLRenderWindow >, and vtkWeakPointer< vtkRenderWindowInteractor >.
vtkObjectBase* vtkWeakPointerBase::GetPointer | ( | ) | const [inline] |
Get the contained pointer.
Reimplemented in vtkWeakPointer< T >, vtkWeakPointer< vtkRenderer >, vtkWeakPointer< vtkViewport >, vtkWeakPointer< vtkWindow >, vtkWeakPointer< vtkContext2D >, vtkWeakPointer< vtkRenderWindow >, vtkWeakPointer< vtkContextScene >, vtkWeakPointer< vtkAxisActor >, vtkWeakPointer< vtkPiecewiseFunction >, vtkWeakPointer< vtkOpenGLRenderWindow >, and vtkWeakPointer< vtkRenderWindowInteractor >.
Definition at line 56 of file vtkWeakPointerBase.h.
friend class vtkObjectBaseToWeakPointerBaseFriendship [friend] |
Definition at line 65 of file vtkWeakPointerBase.h.
vtkObjectBase* vtkWeakPointerBase::Object [protected] |
Definition at line 74 of file vtkWeakPointerBase.h.