25 #ifndef vtkWeakPointerBase_h 26 #define vtkWeakPointerBase_h 28 #include "vtkCommonCoreModule.h" 31 class vtkObjectBaseToWeakPointerBaseFriendship;
76 friend class vtkObjectBaseToWeakPointerBaseFriendship;
89 #define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR(op) \ 91 operator op (const vtkWeakPointerBase& l, const vtkWeakPointerBase& r) \ 93 return (static_cast<void*>(l.GetPointer()) op \ 94 static_cast<void*>(r.GetPointer())); \ 97 operator op (vtkObjectBase* l, const vtkWeakPointerBase& r) \ 99 return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \ 102 operator op (const vtkWeakPointerBase& l, vtkObjectBase* r) \ 104 return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \ 116 #undef VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR 121 VTKCOMMONCORE_EXPORT ostream&
operator << (ostream& os,
vtkObjectBase * GetPointer() const
Get the contained pointer.
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkWeakPointerBase &p)
Compare smart pointer values.
Non-templated superclass for vtkWeakPointer.
abstract base class for most VTK objects
vtkWeakPointerBase()
Initialize smart pointer to nullptr.
#define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR(op)