<!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/vtkVariant.h Source File</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> <h1>dox/Common/vtkVariant.h</h1><a href="a02159.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkVariant.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00015"></a>00015 <span class="comment">/*-------------------------------------------------------------------------</span> <a name="l00016"></a>00016 <span class="comment"> Copyright 2008 Sandia Corporation.</span> <a name="l00017"></a>00017 <span class="comment"> Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span> <a name="l00018"></a>00018 <span class="comment"> the U.S. Government retains certain rights in this software.</span> <a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span> <a name="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkVariant_h</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkVariant_h</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a02149.html">vtkType.h</a>"</span> <span class="comment">// To define type IDs and VTK_TYPE_USE_* flags</span> <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="a02139.html">vtkSystemIncludes.h</a>"</span> <span class="comment">// To define ostream</span> <a name="l00038"></a>00038 <span class="preprocessor">#include "vtkSetGet.h"</span> <span class="comment">// For vtkNotUsed macro</span> <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="a02135.html">vtkStdString.h</a>"</span> <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="comment">//</span> <a name="l00042"></a>00042 <span class="comment">// The following should be eventually placed in vtkSetGet.h</span> <a name="l00043"></a>00043 <span class="comment">//</span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="comment">// This is same as extended template macro with an additional case for VTK_VARIANT</span> <a name="l00046"></a><a class="code" href="a02159.html#7546649548b5aff03a331a664f789d1b">00046</a> <span class="preprocessor">#define vtkExtraExtendedTemplateMacro(call) \</span> <a name="l00047"></a>00047 <span class="preprocessor"> vtkExtendedTemplateMacro(call); \</span> <a name="l00048"></a>00048 <span class="preprocessor"> vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call)</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00050"></a>00050 <span class="comment">// This is same as Iterator Template macro with an additional case for VTK_VARIANT</span> <a name="l00051"></a><a class="code" href="a02159.html#61c0e838616603d4d25924b1afbc1407">00051</a> <span class="preprocessor">#define vtkExtendedArrayIteratorTemplateMacro(call) \</span> <a name="l00052"></a>00052 <span class="preprocessor"> vtkArrayIteratorTemplateMacro(call); \</span> <a name="l00053"></a>00053 <span class="preprocessor"> vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call);</span> <a name="l00054"></a>00054 <span class="preprocessor"></span> <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>; <a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>; <a name="l00058"></a>00058 <span class="keyword">struct </span><a class="code" href="a01814.html">vtkVariantLessThan</a>; <a name="l00059"></a>00059 <a name="l00060"></a><a class="code" href="a01810.html">00060</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> <a name="l00061"></a>00061 { <a name="l00062"></a>00062 <span class="keyword">public</span>: <a name="l00063"></a>00063 <a name="l00065"></a>00065 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(); <a name="l00066"></a>00066 <a name="l00068"></a>00068 ~<a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(); <a name="l00069"></a>00069 <a name="l00071"></a>00071 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> & other); <a name="l00072"></a>00072 <a name="l00074"></a>00074 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">char</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>); <a name="l00075"></a>00075 <a name="l00077"></a>00077 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> value); <a name="l00078"></a>00078 <a name="l00080"></a>00080 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">signed</span> <span class="keywordtype">char</span> value); <a name="l00081"></a>00081 <a name="l00083"></a>00083 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">short</span> value); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> value); <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">int</span> value); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> value); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">long</span> value); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> value); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64)</span> <a name="l00101"></a>00101 <span class="preprocessor"></span> <a name="l00102"></a>00102 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(__int64 value); <a name="l00103"></a>00103 <a name="l00105"></a>00105 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> __int64 value); <a name="l00106"></a>00106 <span class="preprocessor">#endif</span> <a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#if defined(VTK_TYPE_USE_LONG_LONG)</span> <a name="l00108"></a>00108 <span class="preprocessor"></span> <a name="l00109"></a>00109 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">long</span> <span class="keywordtype">long</span> value); <a name="l00110"></a>00110 <a name="l00112"></a>00112 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> value); <a name="l00113"></a>00113 <span class="preprocessor">#endif</span> <a name="l00114"></a>00114 <span class="preprocessor"></span> <a name="l00116"></a>00116 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">float</span> value); <a name="l00117"></a>00117 <a name="l00119"></a>00119 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keywordtype">double</span> value); <a name="l00120"></a>00120 <a name="l00122"></a>00122 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value); <a name="l00123"></a>00123 <a name="l00125"></a>00125 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a> value); <a name="l00126"></a>00126 <a name="l00128"></a>00128 <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>(<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>* value); <a name="l00129"></a>00129 <a name="l00131"></a>00131 <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> & operator= (<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> & other); <a name="l00132"></a>00132 <a name="l00134"></a>00134 <span class="keywordtype">bool</span> IsValid() <span class="keyword">const</span>; <a name="l00135"></a>00135 <a name="l00137"></a>00137 <span class="keywordtype">bool</span> IsString() <span class="keyword">const</span>; <a name="l00138"></a>00138 <a name="l00140"></a>00140 <span class="keywordtype">bool</span> IsNumeric() <span class="keyword">const</span>; <a name="l00141"></a>00141 <a name="l00143"></a>00143 <span class="keywordtype">bool</span> IsFloat() <span class="keyword">const</span>; <a name="l00144"></a>00144 <a name="l00146"></a>00146 <span class="keywordtype">bool</span> IsDouble() <span class="keyword">const</span>; <a name="l00147"></a>00147 <a name="l00149"></a>00149 <span class="keywordtype">bool</span> IsChar() <span class="keyword">const</span>; <a name="l00150"></a>00150 <a name="l00152"></a>00152 <span class="keywordtype">bool</span> IsUnsignedChar() <span class="keyword">const</span>; <a name="l00153"></a>00153 <a name="l00155"></a>00155 <span class="keywordtype">bool</span> IsSignedChar() <span class="keyword">const</span>; <a name="l00156"></a>00156 <a name="l00158"></a>00158 <span class="keywordtype">bool</span> IsShort() <span class="keyword">const</span>; <a name="l00159"></a>00159 <a name="l00161"></a>00161 <span class="keywordtype">bool</span> IsUnsignedShort() <span class="keyword">const</span>; <a name="l00162"></a>00162 <a name="l00164"></a>00164 <span class="keywordtype">bool</span> IsInt() <span class="keyword">const</span>; <a name="l00165"></a>00165 <a name="l00167"></a>00167 <span class="keywordtype">bool</span> IsUnsignedInt() <span class="keyword">const</span>; <a name="l00168"></a>00168 <a name="l00170"></a>00170 <span class="keywordtype">bool</span> IsLong() <span class="keyword">const</span>; <a name="l00171"></a>00171 <a name="l00173"></a>00173 <span class="keywordtype">bool</span> IsUnsignedLong() <span class="keyword">const</span>; <a name="l00174"></a>00174 <a name="l00176"></a>00176 <span class="keywordtype">bool</span> Is__Int64() <span class="keyword">const</span>; <a name="l00177"></a>00177 <a name="l00179"></a>00179 <span class="keywordtype">bool</span> IsUnsigned__Int64() <span class="keyword">const</span>; <a name="l00180"></a>00180 <a name="l00182"></a>00182 <span class="keywordtype">bool</span> IsLongLong() <span class="keyword">const</span>; <a name="l00183"></a>00183 <a name="l00185"></a>00185 <span class="keywordtype">bool</span> IsUnsignedLongLong() <span class="keyword">const</span>; <a name="l00186"></a>00186 <a name="l00188"></a>00188 <span class="keywordtype">bool</span> IsVTKObject() <span class="keyword">const</span>; <a name="l00189"></a>00189 <a name="l00192"></a>00192 <span class="keywordtype">bool</span> IsArray() <span class="keyword">const</span>; <a name="l00193"></a>00193 <a name="l00195"></a>00195 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetType() <span class="keyword">const</span>; <a name="l00196"></a>00196 <a name="l00198"></a>00198 <span class="keyword">const</span> <span class="keywordtype">char</span>* GetTypeAsString() <span class="keyword">const</span>; <a name="l00199"></a>00199 <a name="l00201"></a>00201 <a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a> ToString() <span class="keyword">const</span>; <a name="l00202"></a>00202 <a name="l00204"></a>00204 <a name="l00210"></a>00210 <span class="keywordtype">float</span> ToFloat(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00211"></a>00211 <span class="keywordtype">double</span> ToDouble(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00212"></a>00212 <span class="keywordtype">char</span> ToChar(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00213"></a>00213 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> ToUnsignedChar(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00214"></a>00214 <span class="keywordtype">signed</span> <span class="keywordtype">char</span> ToSignedChar(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00215"></a>00215 <span class="keywordtype">short</span> ToShort(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00216"></a>00216 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> ToUnsignedShort(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00217"></a>00217 <span class="keywordtype">int</span> ToInt(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00218"></a>00218 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ToUnsignedInt(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00219"></a>00219 <span class="keywordtype">long</span> ToLong(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00220"></a>00220 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ToUnsignedLong(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00221"></a>00221 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64)</span> <a name="l00222"></a>00222 <span class="preprocessor"></span> __int64 To__Int64(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00223"></a>00223 <span class="keywordtype">unsigned</span> __int64 ToUnsigned__Int64(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00225"></a>00225 <span class="preprocessor">#endif</span> <a name="l00226"></a>00226 <span class="preprocessor"></span><span class="preprocessor">#if defined(VTK_TYPE_USE_LONG_LONG)</span> <a name="l00227"></a>00227 <span class="preprocessor"></span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> ToLongLong(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00228"></a>00228 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> ToUnsignedLongLong(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00229"></a>00229 <span class="preprocessor">#endif</span> <a name="l00230"></a>00230 <span class="preprocessor"></span> vtkTypeInt64 ToTypeInt64(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00231"></a>00231 vtkTypeUInt64 ToTypeUInt64(<span class="keywordtype">bool</span>* valid = 0) <span class="keyword">const</span>; <a name="l00232"></a>00232 <a name="l00234"></a>00234 <a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>* ToVTKObject() <span class="keyword">const</span>; <a name="l00235"></a>00235 <a name="l00237"></a>00237 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* ToArray() <span class="keyword">const</span>; <a name="l00238"></a>00238 <a name="l00239"></a>00239 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a name="l00240"></a>00240 T ToNumeric(<span class="keywordtype">bool</span>* valid, T* vtkNotUsed(ignored)) <span class="keyword">const</span>; <a name="l00241"></a>00241 <a name="l00248"></a>00248 <span class="keywordtype">bool</span> IsEqual(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>& other) <span class="keyword">const</span>; <a name="l00249"></a>00249 <a name="l00251"></a>00251 <a name="l00271"></a>00271 <span class="keywordtype">bool</span> <a class="code" href="a02263.html#544428171128ab0363576bae16711623">operator==</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00272"></a>00272 <span class="keywordtype">bool</span> <a class="code" href="a02263.html#d74c8f62a910f881aeef3158bd734acc">operator!=</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00273"></a>00273 <span class="keywordtype">bool</span> operator<(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00274"></a>00274 <span class="keywordtype">bool</span> operator>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00275"></a>00275 <span class="keywordtype">bool</span> operator<=(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00276"></a>00276 <span class="keywordtype">bool</span> operator>=(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &other) <span class="keyword">const</span>; <a name="l00278"></a>00278 <a name="l00279"></a>00279 <a name="l00280"></a>00280 <a name="l00281"></a>00281 <a name="l00282"></a>00282 <span class="keyword">private</span>: <a name="l00283"></a>00283 <span class="keyword">union</span> <a name="l00284"></a>00284 { <a name="l00285"></a><a class="code" href="a01810.html#7aaaf0a1c550b6e9f4c408285bd41054">00285</a> <a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a>* String; <a name="l00286"></a><a class="code" href="a01810.html#53c4d791cda5203e73b7162a7020e137">00286</a> <span class="keywordtype">float</span> Float; <a name="l00287"></a><a class="code" href="a01810.html#cff5ade495f31d3aeca15f9691237e34">00287</a> <span class="keywordtype">double</span> Double; <a name="l00288"></a><a class="code" href="a01810.html#da422b12b15cdb6ffb77cf71c4e1dcf9">00288</a> <span class="keywordtype">char</span> Char; <a name="l00289"></a><a class="code" href="a01810.html#bfd8f172277e9400edd499cbb5fd0357">00289</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> UnsignedChar; <a name="l00290"></a><a class="code" href="a01810.html#d4fa68a2852d8a7183dadb9fc014b6e8">00290</a> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> SignedChar; <a name="l00291"></a><a class="code" href="a01810.html#3f804ea89e92d11b540b89d944664af0">00291</a> <span class="keywordtype">short</span> Short; <a name="l00292"></a><a class="code" href="a01810.html#3115b0ab4e2d980be26e7e95bfa30221">00292</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> UnsignedShort; <a name="l00293"></a><a class="code" href="a01810.html#354c357e5f659fc661f33c618484617c">00293</a> <span class="keywordtype">int</span> Int; <a name="l00294"></a><a class="code" href="a01810.html#86350b82442c0cae07bb0e35b20de0cf">00294</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> UnsignedInt; <a name="l00295"></a><a class="code" href="a01810.html#b5f7e808fecd34fd497ee7e721b19f13">00295</a> <span class="keywordtype">long</span> Long; <a name="l00296"></a><a class="code" href="a01810.html#bf703daced84ad8b2e7714c1805455a1">00296</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> UnsignedLong; <a name="l00297"></a>00297 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64)</span> <a name="l00298"></a>00298 <span class="preprocessor"></span> __int64 __Int64; <a name="l00299"></a>00299 <span class="keywordtype">unsigned</span> __int64 Unsigned__Int64; <a name="l00300"></a>00300 <span class="preprocessor">#endif</span> <a name="l00301"></a>00301 <span class="preprocessor"></span><span class="preprocessor">#if defined(VTK_TYPE_USE_LONG_LONG)</span> <a name="l00302"></a>00302 <span class="preprocessor"></span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> LongLong; <a name="l00303"></a>00303 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> UnsignedLongLong; <a name="l00304"></a>00304 <span class="preprocessor">#endif</span> <a name="l00305"></a><a class="code" href="a01810.html#d0b32f95e1c21566a9660d77f66149f2">00305</a> <span class="preprocessor"></span> <a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>* VTKObject; <a name="l00306"></a>00306 } Data; <a name="l00307"></a>00307 <a name="l00308"></a>00308 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Valid; <a name="l00309"></a>00309 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Type; <a name="l00310"></a>00310 <a name="l00311"></a><a class="code" href="a01810.html#2e06294112a7452f2d1837cd5a555106">00311</a> <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="a01814.html">vtkVariantLessThan</a>; <a name="l00312"></a><a class="code" href="a01810.html#5135a48d84528cd9fac0988f627f1e96">00312</a> <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="a01813.html">vtkVariantEqual</a>; <a name="l00313"></a><a class="code" href="a01810.html#59f13a4421b5eb6a7fda255b945dac43">00313</a> <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="a01816.html">vtkVariantStrictWeakOrder</a>; <a name="l00314"></a><a class="code" href="a01810.html#c3ce860752aa61c96ae69f2eb30c4c0b">00314</a> <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="a01815.html">vtkVariantStrictEquality</a>; <a name="l00315"></a>00315 }; <a name="l00316"></a>00316 <a name="l00317"></a>00317 <span class="preprocessor">#include "<a class="code" href="a02164.html">vtkVariantInlineOperators.h</a>"</span> <span class="comment">// needed for operator== and company</span> <a name="l00318"></a>00318 <a name="l00319"></a>00319 <span class="comment">// A STL-style function object so you can compare two variants using</span> <a name="l00320"></a>00320 <span class="comment">// comp(s1,s2) where comp is an instance of vtkVariantStrictWeakOrder.</span> <a name="l00321"></a>00321 <span class="comment">// This is a faster version of operator< that makes no attempt to</span> <a name="l00322"></a>00322 <span class="comment">// compare values. It satisfies the STL requirement for a comparison</span> <a name="l00323"></a>00323 <span class="comment">// function for ordered containers like map and set.</span> <a name="l00324"></a>00324 <a name="l00325"></a><a class="code" href="a01814.html">00325</a> <span class="keyword">struct </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01814.html">vtkVariantLessThan</a> <a name="l00326"></a>00326 { <a name="l00327"></a>00327 <span class="keyword">public</span>: <a name="l00328"></a>00328 <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s1, <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s2) <span class="keyword">const</span>; <a name="l00329"></a>00329 }; <a name="l00330"></a>00330 <a name="l00331"></a><a class="code" href="a01813.html">00331</a> <span class="keyword">struct </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01813.html">vtkVariantEqual</a> <a name="l00332"></a>00332 { <a name="l00333"></a>00333 <span class="keyword">public</span>: <a name="l00334"></a>00334 <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s1, <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s2) <span class="keyword">const</span>; <a name="l00335"></a>00335 }; <a name="l00336"></a>00336 <a name="l00337"></a><a class="code" href="a01816.html">00337</a> <span class="keyword">struct </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01816.html">vtkVariantStrictWeakOrder</a> <a name="l00338"></a>00338 { <a name="l00339"></a>00339 <span class="keyword">public</span>: <a name="l00340"></a>00340 <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>& s1, <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>& s2) <span class="keyword">const</span>; <a name="l00341"></a>00341 }; <a name="l00342"></a>00342 <a name="l00343"></a>00343 <span class="comment">// Similarly, this is a fast version of operator== that requires that</span> <a name="l00344"></a>00344 <span class="comment">// the types AND the values be equal in order to admit equality.</span> <a name="l00345"></a>00345 <a name="l00346"></a><a class="code" href="a01815.html">00346</a> <span class="keyword">struct </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01815.html">vtkVariantStrictEquality</a> <a name="l00347"></a>00347 { <a name="l00348"></a>00348 <span class="keyword">public</span>: <a name="l00349"></a>00349 <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s1, <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> &s2) <span class="keyword">const</span>; <a name="l00350"></a>00350 }; <a name="l00351"></a>00351 <a name="l00352"></a>00352 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:13 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>