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

Go to the source code of this file.

Classes

class  vtkSmartPointerBase
 Non-templated superclass for vtkSmartPointer. More...
 
class  vtkSmartPointerBase::NoReference
 

Macros

#define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR(op)
 

Functions

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

Macro Definition Documentation

#define VTK_SMART_POINTER_BASE_DEFINE_OPERATOR (   op)
Value:
inline bool \
operator op (const vtkSmartPointerBase& l, const vtkSmartPointerBase& r) \
{ \
return (static_cast<void*>(l.GetPointer()) op \
static_cast<void*>(r.GetPointer())); \
} \
inline bool \
operator op (vtkObjectBase* l, const vtkSmartPointerBase& r) \
{ \
return (static_cast<void*>(l) op static_cast<void*>(r.GetPointer())); \
} \
inline bool \
operator op (const vtkSmartPointerBase& l, vtkObjectBase* r) \
{ \
return (static_cast<void*>(l.GetPointer()) op static_cast<void*>(r)); \
}
abstract base class for most VTK objects
Definition: vtkObjectBase.h:65
Non-templated superclass for vtkSmartPointer.

Definition at line 98 of file vtkSmartPointerBase.h.

Function Documentation

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

Compare smart pointer values.

Streaming operator to print smart pointer like regular pointers.