<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: dox/Common/vtkWeakPointer.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>dox/Common/vtkWeakPointer.h File Reference</h1> <p> <code>#include "<a class="el" href="a03965.html">vtkWeakPointerBase.h</a>"</code><br> <p> <div class="dynheader"> Include dependency graph for vtkWeakPointer.h:</div> <div class="dynsection"> <p><center><img src="a05815.png" border="0" usemap="#dox/Common/vtkWeakPointer.h_map" alt=""></center> <map name="dox/Common/vtkWeakPointer.h_map"> <area shape="rect" href="a02169.html" title="vtkWeakPointerBase.h" alt="" coords="584,80,744,107"><area shape="rect" href="a02079.html" title="vtkObject.h" alt="" coords="619,155,709,182"><area shape="rect" href="a02080.html" title="vtkObjectBase.h" alt="" coords="471,230,593,256"><area shape="rect" href="a02146.html" title="vtkTimeStamp.h" alt="" coords="669,304,789,331"><area shape="rect" href="a02038.html" title="vtkIndent.h" alt="" coords="487,304,577,331"><area shape="rect" href="a02139.html" title="vtkSystemIncludes.h" alt="" coords="541,379,688,406"><area shape="rect" href="a02170.html" title="vtkWin32Header.h" alt="" coords="5,528,141,555"><area shape="rect" href="a02064.html" title="vtkIOStream.h" alt="" coords="257,454,367,480"><area shape="rect" href="a02149.html" title="vtkType.h" alt="" coords="645,528,728,555"><area shape="rect" href="a02085.html" title="vtkOStreamWrapper.h" alt="" coords="441,454,599,480"><area shape="rect" href="a02086.html" title="vtkOStrStreamWrapper.h" alt="" coords="623,454,799,480"></map> </div> <p> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <p><center><img src="a05816.png" border="0" usemap="#dox/Common/vtkWeakPointer.hdep_map" alt=""></center> <map name="dox/Common/vtkWeakPointer.hdep_map"> <area shape="rect" href="a03507.html" title="dox/Rendering/vtkPainter.h" alt="" coords="3456,80,3643,107"><area shape="rect" href="a03399.html" title="dox/Rendering/vtkFrameBufferObject.h" alt="" coords="3667,80,3925,107"><area shape="rect" href="a03488.html" title="dox/Rendering/vtkOpenGLExtensionManager.h" alt="" coords="3949,80,4256,107"><area shape="rect" href="a03504.html" title="dox/Rendering/vtkOpenGLTexture.h" alt="" coords="4280,80,4520,107"><area shape="rect" href="a03512.html" title="dox/Rendering/vtkPixelBufferObject.h" alt="" coords="4544,80,4792,107"><area shape="rect" href="a03552.html" title="dox/Rendering/vtkShaderProgram2.h" alt="" coords="4816,80,5064,107"><area shape="rect" href="a03563.html" title="dox/Rendering/vtkTextureObject.h" alt="" coords="5088,80,5315,107"><area shape="rect" href="a03518.html" title="dox/Rendering/vtkPolyDataPainter.h" alt="" coords="1409,155,1652,181"><area shape="rect" href="a03379.html" title="dox/Rendering/vtkClipPlanesPainter.h" alt="" coords="3017,155,3268,181"><area shape="rect" href="a03386.html" title="dox/Rendering/vtkCompositePainter.h" alt="" coords="3292,155,3543,181"><area shape="rect" href="a03392.html" title="dox/Rendering/vtkDefaultPainter.h" alt="" coords="3567,155,3796,181"><area shape="rect" href="a03395.html" title="dox/Rendering/vtkDisplayListPainter.h" alt="" coords="3820,155,4071,181"><area shape="rect" href="a03542.html" title="dox/Rendering/vtkScalarsToColorsPainter.h" alt="" coords="4213,155,4501,181"><area shape="rect" href="a03378.html" title="dox/Rendering/vtkChooserPainter.h" alt="" coords="233,229,471,256"><area shape="rect" href="a03385.html" title="dox/Rendering/vtkCoincidentTopologyResolutionPainter.h" alt="" coords="495,229,865,256"><area shape="rect" href="a03555.html" title="dox/Rendering/vtkStandardPolyDataPainter.h" alt="" coords="924,229,1223,256"><area shape="rect" href="a03415.html" title="dox/Rendering/vtkIdentColoredPainter.h" alt="" coords="1261,229,1525,256"><area shape="rect" href="a03452.html" title="dox/Rendering/vtkLightingPainter.h" alt="" coords="1549,229,1784,256"><area shape="rect" href="a03521.html" title="dox/Rendering/vtkPrimitivePainter.h" alt="" coords="2096,229,2336,256"><area shape="rect" href="a03540.html" title="dox/Rendering/vtkRepresentationPainter.h" alt="" coords="2624,229,2901,256"><area shape="rect" href="a03463.html" title="dox/Rendering/vtkMesaCoincidentTopologyResolutionPainter.h" alt="" coords="5,304,411,331"><area shape="rect" href="a03486.html" title="dox/Rendering/vtkOpenGLCoincidentTopologyResolutionPainter.h" alt="" coords="435,304,856,331"><area shape="rect" href="a03412.html" title="dox/Rendering/vtkHardwareSelectionPolyDataPainter.h" alt="" coords="880,304,1237,331"><area shape="rect" href="a03469.html" title="dox/Rendering/vtkMesaLightingPainter.h" alt="" coords="1261,304,1528,331"><area shape="rect" href="a03494.html" title="dox/Rendering/vtkOpenGLLightingPainter.h" alt="" coords="1552,304,1837,331"><area shape="rect" href="a03455.html" title="dox/Rendering/vtkLinesPainter.h" alt="" coords="1861,304,2080,331"><area shape="rect" href="a03515.html" title="dox/Rendering/vtkPointsPainter.h" alt="" coords="2104,304,2328,331"><area shape="rect" href="a03519.html" title="dox/Rendering/vtkPolygonsPainter.h" alt="" coords="2352,304,2595,331"><area shape="rect" href="a03569.html" title="dox/Rendering/vtkTStripsPainter.h" alt="" coords="2619,304,2848,331"><area shape="rect" href="a03476.html" title="dox/Rendering/vtkMesaRepresentationPainter.h" alt="" coords="2872,304,3184,331"><area shape="rect" href="a03501.html" title="dox/Rendering/vtkOpenGLRepresentationPainter.h" alt="" coords="3208,304,3539,331"><area shape="rect" href="a03462.html" title="dox/Rendering/vtkMesaClipPlanesPainter.h" alt="" coords="2925,229,3211,256"><area shape="rect" href="a03485.html" title="dox/Rendering/vtkOpenGLClipPlanesPainter.h" alt="" coords="3235,229,3536,256"><area shape="rect" href="a03464.html" title="dox/Rendering/vtkMesaDisplayListPainter.h" alt="" coords="3560,229,3845,256"><area shape="rect" href="a03487.html" title="dox/Rendering/vtkOpenGLDisplayListPainter.h" alt="" coords="3869,229,4173,256"><area shape="rect" href="a03477.html" title="dox/Rendering/vtkMesaScalarsToColorsPainter.h" alt="" coords="4197,229,4517,256"><area shape="rect" href="a03502.html" title="dox/Rendering/vtkOpenGLScalarsToColorsPainter.h" alt="" coords="4541,229,4880,256"></map> </div> <p> <a href="a03964.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a01869.html">vtkWeakPointer< T ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">a weak reference to a <a class="el" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>. <a href="a01869.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a02168.html#d347c053a366bfe54d3d1def7a087116">VTK_WEAK_POINTER_DEFINE_OPERATOR</a>(op)</td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<class T> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">ostream & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a02168.html#1023d9682a4bff01cbe21554ed037308">operator<<</a> (ostream &os, const <a class="el" href="a01869.html">vtkWeakPointer</a>< T > &p)</td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="d347c053a366bfe54d3d1def7a087116"></a><!-- doxytag: member="vtkWeakPointer.h::VTK_WEAK_POINTER_DEFINE_OPERATOR" ref="d347c053a366bfe54d3d1def7a087116" args="(op)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define VTK_WEAK_POINTER_DEFINE_OPERATOR </td> <td>(</td> <td class="paramtype">op </td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <b>Value:</b><div class="fragment"><pre class="fragment"><span class="keyword">template</span> <<span class="keyword">class</span> T> \ <span class="keyword">inline</span> vtkstd_bool \ operator op (<span class="keyword">const</span> <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer<T></a>& l, <span class="keyword">const</span> <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer<T></a>& r) \ { \ <span class="keywordflow">return</span> (l.GetPointer() op r.GetPointer()); \ } \ <span class="keyword">template</span> <<span class="keyword">class</span> T> \ <span class="keyword">inline</span> vtkstd_bool operator op (T* l, <span class="keyword">const</span> <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer<T></a>& r) \ { \ <span class="keywordflow">return</span> (l op r.GetPointer()); \ } \ <span class="keyword">template</span> <<span class="keyword">class</span> T> \ <span class="keyword">inline</span> vtkstd_bool operator op (<span class="keyword">const</span> <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer<T></a>& l, T* r) \ { \ <span class="keywordflow">return</span> (l.GetPointer() op r); \ } </pre></div> <p>Definition at line <a class="el" href="a03964.html#l00124">124</a> of file <a class="el" href="a03964.html">vtkWeakPointer.h</a>.</p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="1023d9682a4bff01cbe21554ed037308"></a><!-- doxytag: member="vtkWeakPointer.h::operator<<" ref="1023d9682a4bff01cbe21554ed037308" args="(ostream &os, const vtkWeakPointer< T > &p)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">ostream& operator<< </td> <td>(</td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="a01869.html">vtkWeakPointer</a>< T > & </td> <td class="paramname"> <em>p</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare smart pointer values.<p> Streaming operator to print smart pointer like regular pointers. <p>Definition at line <a class="el" href="a03964.html#l00154">154</a> of file <a class="el" href="a03964.html">vtkWeakPointer.h</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:38:01 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>