26 #ifndef vtkSmartPointerBase_h
27 #define vtkSmartPointerBase_h
29 #include "vtkCommonCoreModule.h"
108 #define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR(op) \
109 inline bool operator op(const vtkSmartPointerBase& l, const vtkSmartPointerBase& r) \
111 return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r.GetPointer())); \
113 inline bool operator op(vtkObjectBase* l, const vtkSmartPointerBase& r) \
115 return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \
117 inline bool operator op(const vtkSmartPointerBase& l, vtkObjectBase* r) \
119 return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \
131 #undef VTK_SMART_POINTER_BASE_DEFINE_OPERATOR
#define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR(op)
vtkSmartPointerBase(vtkSmartPointerBase &&r) noexcept
Move the pointee from r into this and reset @ r.
Detect and break reference loops.
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.
vtkObjectBase * GetPointer() const noexcept
Get the contained pointer.