VTK
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkWeakPointerBase Class Reference

Non-templated superclass for vtkWeakPointer. More...

#include <vtkWeakPointerBase.h>

Inheritance diagram for vtkWeakPointerBase:
Inheritance graph
[legend]
Collaboration diagram for vtkWeakPointerBase:
Collaboration graph
[legend]

List of all members.

Classes

class  NoReference

Public Member Functions

 vtkWeakPointerBase ()
 vtkWeakPointerBase (vtkObjectBase *r)
 vtkWeakPointerBase (const vtkWeakPointerBase &r)
 ~vtkWeakPointerBase ()
vtkWeakPointerBaseoperator= (vtkObjectBase *r)
vtkWeakPointerBaseoperator= (const vtkWeakPointerBase &r)
vtkObjectBaseGetPointer () const

Protected Member Functions

 vtkWeakPointerBase (vtkObjectBase *r, const NoReference &)

Protected Attributes

vtkObjectBaseObject

Friends

class vtkObjectBaseToWeakPointerBaseFriendship

Detailed Description

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.


Constructor & Destructor Documentation

Initialize smart pointer to NULL.

Definition at line 36 of file vtkWeakPointerBase.h.

Initialize smart pointer to given object.

Initialize weak pointer .

Destroy smart pointer.


Member Function Documentation

vtkWeakPointerBase& vtkWeakPointerBase::operator= ( vtkObjectBase r)

Assign object to reference. This removes any reference to an old object.

vtkWeakPointerBase& vtkWeakPointerBase::operator= ( const vtkWeakPointerBase r)

Friends And Related Function Documentation

Definition at line 65 of file vtkWeakPointerBase.h.


Member Data Documentation

Definition at line 74 of file vtkWeakPointerBase.h.


The documentation for this class was generated from the following file: