<!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/vtkSmartPointer.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/vtkSmartPointer.h File Reference</h1> <p> <code>#include "<a class="el" href="a03924.html">vtkSmartPointerBase.h</a>"</code><br> <code>#include <vtksys/Configure.hxx></code><br> <p> <div class="dynheader"> Include dependency graph for vtkSmartPointer.h:</div> <div class="dynsection"> <p><center><img src="a05757.png" border="0" usemap="#dox/Common/vtkSmartPointer.h_map" alt=""></center> <map name="dox/Common/vtkSmartPointer.h_map"> <area shape="rect" href="a02128.html" title="vtkSmartPointerBase.h" alt="" coords="533,80,696,107"><area shape="rect" href="a02080.html" title="vtkObjectBase.h" alt="" coords="553,155,676,181"><area shape="rect" href="a02038.html" title="vtkIndent.h" alt="" coords="528,229,619,256"><area shape="rect" href="a02139.html" title="vtkSystemIncludes.h" alt="" coords="541,304,688,331"><area shape="rect" href="a02170.html" title="vtkWin32Header.h" alt="" coords="5,453,141,480"><area shape="rect" href="a02064.html" title="vtkIOStream.h" alt="" coords="257,379,367,405"><area shape="rect" href="a02149.html" title="vtkType.h" alt="" coords="645,453,728,480"><area shape="rect" href="a02085.html" title="vtkOStreamWrapper.h" alt="" coords="441,379,599,405"><area shape="rect" href="a02086.html" title="vtkOStrStreamWrapper.h" alt="" coords="623,379,799,405"></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="a05758.png" border="0" usemap="#dox/Common/vtkSmartPointer.hdep_map" alt=""></center> <map name="dox/Common/vtkSmartPointer.hdep_map"> <area shape="rect" href="a02216.html" title="dox/Filtering/vtkCompositeDataSetInternals.h" alt="" coords="5,80,301,107"><area shape="rect" href="a02429.html" title="dox/Geovis/vtkCompassRepresentation.h" alt="" coords="325,80,597,107"><area shape="rect" href="a02436.html" title="dox/Geovis/vtkGeoCamera.h" alt="" coords="621,80,819,107"><area shape="rect" href="a02438.html" title="dox/Geovis/vtkGeoFileImageSource.h" alt="" coords="843,80,1093,107"><area shape="rect" href="a02439.html" title="dox/Geovis/vtkGeoFileTerrainSource.h" alt="" coords="1117,80,1373,107"><area shape="rect" href="a02441.html" title="dox/Geovis/vtkGeoGraphRepresentation.h" alt="" coords="1397,80,1675,107"><area shape="rect" href="a02442.html" title="dox/Geovis/vtkGeoGraphRepresentation2D.h" alt="" coords="1699,80,1995,107"><area shape="rect" href="a02457.html" title="dox/Geovis/vtkGeoTreeNode.h" alt="" coords="2069,80,2277,107"><area shape="rect" href="a02444.html" title="dox/Geovis/vtkGeoImageNode.h" alt="" coords="1932,155,2151,182"><area shape="rect" href="a02455.html" title="dox/Geovis/vtkGeoTerrainNode.h" alt="" coords="2193,155,2417,182"><area shape="rect" href="a02445.html" title="dox/Geovis/vtkGeoInteractorStyle.h" alt="" coords="2352,80,2587,107"><area shape="rect" href="a02446.html" title="dox/Geovis/vtkGeoLineRepresentation.h" alt="" coords="2611,80,2877,107"><area shape="rect" href="a02684.html" title="dox/Graphics/vtkTemporalPathLineFilter.h" alt="" coords="2901,80,3179,107"><area shape="rect" href="a02823.html" title="dox/Hybrid/vtkExodusIIReaderParser.h" alt="" coords="3203,80,3459,107"><area shape="rect" href="a03004.html" title="dox/Infovis/vtkClustering2DLayoutStrategy.h" alt="" coords="3483,80,3773,107"><area shape="rect" href="a03006.html" title="dox/Infovis/vtkCommunity2DLayoutStrategy.h" alt="" coords="3797,80,4093,107"><area shape="rect" href="a03007.html" title="dox/Infovis/vtkConstrained2DLayoutStrategy.h" alt="" coords="4117,80,4419,107"><area shape="rect" href="a03021.html" title="dox/Infovis/vtkFast2DLayoutStrategy.h" alt="" coords="4443,80,4699,107"><area shape="rect" href="a03028.html" title="dox/Infovis/vtkGraphMapper.h" alt="" coords="4723,80,4925,107"><area shape="rect" href="a03051.html" title="dox/Infovis/vtkPerturbCoincidentVertices.h" alt="" coords="4949,80,5227,107"><area shape="rect" href="a03084.html" title="dox/Infovis/vtkTreeMapViewer.h" alt="" coords="5251,80,5467,107"><area shape="rect" href="a03276.html" title="dox/Parallel/vtkCachingInterpolatedVelocityField.h" alt="" coords="5491,80,5816,107"><area shape="rect" href="a03340.html" title="dox/Parallel/vtkPStreamTracer.h" alt="" coords="5840,80,6059,107"><area shape="rect" href="a03291.html" title="dox/Parallel/vtkExodusIIWriter.h" alt="" coords="6083,80,6299,107"><area shape="rect" href="a03348.html" title="dox/Parallel/vtkTemporalInterpolatedVelocityField.h" alt="" coords="6323,80,6656,107"><area shape="rect" href="a03349.html" title="dox/Parallel/vtkTemporalStreamTracer.h" alt="" coords="6680,80,6947,107"><area shape="rect" href="a03399.html" title="dox/Rendering/vtkFrameBufferObject.h" alt="" coords="6971,80,7229,107"><area shape="rect" href="a03542.html" title="dox/Rendering/vtkScalarsToColorsPainter.h" alt="" coords="7253,80,7541,107"><area shape="rect" href="a03590.html" title="dox/Views/vtkGraphLayoutView.h" alt="" coords="7565,80,7789,107"><area shape="rect" href="a03591.html" title="dox/Views/vtkHierarchicalGraphView.h" alt="" coords="7813,80,8069,107"><area shape="rect" href="a03595.html" title="dox/Views/vtkTreeAreaView.h" alt="" coords="8093,80,8296,107"><area shape="rect" href="a03286.html" title="dox/Parallel/vtkDistributedStreamTracer.h" alt="" coords="5812,155,6087,182"><area shape="rect" href="a03477.html" title="dox/Rendering/vtkMesaScalarsToColorsPainter.h" alt="" coords="7036,155,7356,182"><area shape="rect" href="a03502.html" title="dox/Rendering/vtkOpenGLScalarsToColorsPainter.h" alt="" coords="7380,155,7719,182"><area shape="rect" href="a03592.html" title="dox/Views/vtkIcicleView.h" alt="" coords="7895,155,8071,182"><area shape="rect" href="a03597.html" title="dox/Views/vtkTreeMapView.h" alt="" coords="8095,155,8295,182"><area shape="rect" href="a03598.html" title="dox/Views/vtkTreeRingView.h" alt="" coords="8319,155,8519,182"></map> </div> <p> <a href="a03923.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="a01562.html">vtkSmartPointer< T ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Hold a reference to a <a class="el" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a> instance. <a href="a01562.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="a02127.html#a4c1a47a190f2f0b755dcf526b9b6025">VTK_SMART_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="a02127.html#bf8f84843979741090cee412c9a4c33a">operator<<</a> (ostream &os, const <a class="el" href="a01562.html">vtkSmartPointer</a>< T > &p)</td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="a4c1a47a190f2f0b755dcf526b9b6025"></a><!-- doxytag: member="vtkSmartPointer.h::VTK_SMART_POINTER_DEFINE_OPERATOR" ref="a4c1a47a190f2f0b755dcf526b9b6025" args="(op)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define VTK_SMART_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="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer<T></a>& l, <span class="keyword">const</span> <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer<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="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer<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="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer<T></a>& l, T* r) \ { \ <span class="keywordflow">return</span> (l.GetPointer() op r); \ } </pre></div> <p>Definition at line <a class="el" href="a03923.html#l00192">192</a> of file <a class="el" href="a03923.html">vtkSmartPointer.h</a>.</p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="bf8f84843979741090cee412c9a4c33a"></a><!-- doxytag: member="vtkSmartPointer.h::operator<<" ref="bf8f84843979741090cee412c9a4c33a" args="(ostream &os, const vtkSmartPointer< 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="a01562.html">vtkSmartPointer</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="a03923.html#l00222">222</a> of file <a class="el" href="a03923.html">vtkSmartPointer.h</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:37:30 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>