VTK  9.0.20210616
Classes | Macros | Functions
vtkWeakPointerBase.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkObjectBase.h"
Include dependency graph for vtkWeakPointerBase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vtkWeakPointerBase
 Non-templated superclass for vtkWeakPointer. More...
 
class  vtkWeakPointerBase::NoReference
 

Macros

#define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR(op)
 

Functions

VTKCOMMONCORE_EXPORT ostream & operator<< (ostream &os, const vtkWeakPointerBase &p)
 Compare smart pointer values. More...
 

Macro Definition Documentation

◆ VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR

#define VTK_WEAK_POINTER_BASE_DEFINE_OPERATOR (   op)
Value:
inline bool operator op(const vtkWeakPointerBase& l, const vtkWeakPointerBase& r) \
{ \
return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r.GetPointer())); \
} \
inline bool operator op(vtkObjectBase* l, const vtkWeakPointerBase& r) \
{ \
return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \
} \
inline bool operator op(const vtkWeakPointerBase& l, vtkObjectBase* r) \
{ \
return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \
}

Definition at line 99 of file vtkWeakPointerBase.h.

Function Documentation

◆ operator<<()

VTKCOMMONCORE_EXPORT ostream& operator<< ( ostream &  os,
const vtkWeakPointerBase p 
)

Compare smart pointer values.

Streaming operator to print smart pointer like regular pointers.

vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
vtkWeakPointerBase
Non-templated superclass for vtkWeakPointer.
Definition: vtkWeakPointerBase.h:34