vtkWeakPointerBase Class Reference

#include <vtkWeakPointerBase.h>

Inheritance diagram for vtkWeakPointerBase:

Inheritance graph
[legend]
Collaboration diagram for vtkWeakPointerBase:

Collaboration graph
[legend]

List of all members.


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 31 of file vtkWeakPointerBase.h.


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

Classes

class  NoReference

Constructor & Destructor Documentation

vtkWeakPointerBase::vtkWeakPointerBase (  )  [inline]

Initialize smart pointer to NULL.

Definition at line 35 of file vtkWeakPointerBase.h.

vtkWeakPointerBase::vtkWeakPointerBase ( vtkObjectBase r  ) 

Initialize smart pointer to given object.

vtkWeakPointerBase::vtkWeakPointerBase ( const vtkWeakPointerBase r  ) 

Initialize weak pointer .

vtkWeakPointerBase::~vtkWeakPointerBase (  ) 

Destroy smart pointer.

vtkWeakPointerBase::vtkWeakPointerBase ( vtkObjectBase r,
const NoReference  
) [protected]


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  ) 

vtkObjectBase* vtkWeakPointerBase::GetPointer (  )  const [inline]


Friends And Related Function Documentation

friend class vtkObjectBaseToWeakPointerBaseFriendship [friend]

Definition at line 64 of file vtkWeakPointerBase.h.


Member Data Documentation

Definition at line 73 of file vtkWeakPointerBase.h.


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

Generated on Wed Aug 24 12:19:40 2011 for VTK by  doxygen 1.5.6