24 #ifndef vtkWeakPointerBase_h
25 #define vtkWeakPointerBase_h
30 class vtkObjectBaseToWeakPointerBaseFriendship;
65 friend class vtkObjectBaseToWeakPointerBaseFriendship;
78 #define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR(op) \
80 operator op (const vtkWeakPointerBase& l, const vtkWeakPointerBase& r) \
82 return (static_cast<void*>(l.GetPointer()) op \
83 static_cast<void*>(r.GetPointer())); \
86 operator op (vtkObjectBase* l, const vtkWeakPointerBase& r) \
88 return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \
91 operator op (const vtkWeakPointerBase& l, vtkObjectBase* r) \
93 return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \
105 #undef VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR
#define VTKCOMMONCORE_EXPORT
vtkObjectBase * GetPointer() const
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkWeakPointerBase &p)
Non-templated superclass for vtkWeakPointer.
abstract base class for most VTK objects
#define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR(op)