26 #ifndef vtkSmartPointerBase_h 27 #define vtkSmartPointerBase_h 29 #include "vtkCommonCoreModule.h" 98 #define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR(op) \ 100 operator op (const vtkSmartPointerBase& l, const vtkSmartPointerBase& r) \ 102 return (static_cast<void*>(l.GetPointer()) op \ 103 static_cast<void*>(r.GetPointer())); \ 106 operator op (vtkObjectBase* l, const vtkSmartPointerBase& r) \ 108 return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \ 111 operator op (const vtkSmartPointerBase& l, vtkObjectBase* r) \ 113 return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \ 125 #undef VTK_SMART_POINTER_BASE_DEFINE_OPERATOR 130 VTKCOMMONCORE_EXPORT ostream&
operator << (ostream& os,
#define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR(op)
Detect and break reference loops.
vtkObjectBase * GetPointer() const
Get the contained pointer.
abstract base class for most VTK objects
Non-templated superclass for vtkSmartPointer.
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkSmartPointerBase &p)
Compare smart pointer values.