dox/Common/vtkWeakPointer.h File Reference

#include "vtkWeakPointerBase.h"

Include dependency graph for vtkWeakPointer.h:

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

Go to the source code of this file.

Classes

class  vtkWeakPointer< T >
 a weak reference to a vtkObject. More...

Defines

#define VTK_WEAK_POINTER_DEFINE_OPERATOR(op)

Functions

template<class T>
ostream & operator<< (ostream &os, const vtkWeakPointer< T > &p)


Define Documentation

#define VTK_WEAK_POINTER_DEFINE_OPERATOR ( op   ) 

Value:

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

Definition at line 142 of file vtkWeakPointer.h.


Function Documentation

template<class T>
ostream& operator<< ( ostream &  os,
const vtkWeakPointer< T > &  p 
) [inline]

Compare smart pointer values.

Streaming operator to print smart pointer like regular pointers.

Definition at line 172 of file vtkWeakPointer.h.


Generated on Mon Sep 27 18:10:06 2010 for VTK by  doxygen 1.5.6