Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkSmartPointer.h File Reference

#include "vtkSmartPointerBase.h"

Include dependency graph for vtkSmartPointer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vtkSmartPointer< T >
 Hold a reference to a vtkObjectBase instance. More...
template<class T>
ostream & operator<< (ostream &os, const vtkSmartPointer< T > &p)

Defines

#define VTK_SMART_POINTER_DEFINE_OPERATOR(op)


Define Documentation

#define VTK_SMART_POINTER_DEFINE_OPERATOR op   ) 
 

Value:

template <class T> \
  inline vtkstd_bool \
  operator op (const vtkSmartPointer<T>& l, const vtkSmartPointer<T>& r) \
    { \
    return (l.GetPointer() op r.GetPointer()); \
    } \
  template <class T> \
  inline vtkstd_bool operator op (T* l, const vtkSmartPointer<T>& r) \
    { \
    return (l op r.GetPointer()); \
    } \
  template <class T> \
  inline vtkstd_bool operator op (const vtkSmartPointer<T>& l, T* r) \
    { \
    return (l.GetPointer() op r); \
    }

Definition at line 173 of file vtkSmartPointer.h.


Function Documentation

template<class T>
ostream& operator<< ostream &  os,
const vtkSmartPointer< T > &  p
[inline]
 

Streaming operator to print smart pointer like regular pointers.

Definition at line 203 of file vtkSmartPointer.h.


Generated on Mon Jan 21 23:11:08 2008 for VTK by  doxygen 1.4.3-20050530