Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 3950

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!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/vtkTypeTraits.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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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/vtkTypeTraits.h</h1><a href="a02152.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:   ParaView</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkTypeTraits.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Kitware, Inc.</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.paraview.org/HTML/Copyright.html 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="l00025"></a>00025 <span class="preprocessor">#ifndef __vtkTypeTraits_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTypeTraits_h</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="a02139.html">vtkSystemIncludes.h</a>"</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">// Forward-declare template.  There is no primary template.</span>
<a name="l00031"></a>00031 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt; <span class="keyword">struct </span><a class="code" href="a01773.html" title="Template defining traits of native types used by VTK.">vtkTypeTraits</a>;
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">// Define a macro to simplify trait definitions.</span>
<a name="l00034"></a><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">00034</a> <span class="preprocessor">#define VTK_TYPE_TRAITS(type, macro, isSigned, name, print, format)           \</span>
<a name="l00035"></a>00035 <span class="preprocessor">  VTK_TEMPLATE_SPECIALIZE struct vtkTypeTraits&lt; type &gt;                        \</span>
<a name="l00036"></a>00036 <span class="preprocessor">  {                                                                           \</span>
<a name="l00037"></a>00037 <span class="preprocessor">    </span><span class="comment">/* The type itself.  */</span>                                                   \
<a name="l00038"></a>00038     typedef type ValueType;                                                   \
<a name="l00039"></a>00039                                                                               \
<a name="l00040"></a>00040     <span class="comment">/* the value defined for this type in vtkType */</span>                          \
<a name="l00041"></a>00041     static int VTKTypeID() { return VTK_##macro; }                            \
<a name="l00042"></a>00042                                                                               \
<a name="l00043"></a>00043     <span class="comment">/* The smallest possible value represented by the type.  */</span>               \
<a name="l00044"></a>00044     static type Min() { return VTK_##macro##_MIN; }                           \
<a name="l00045"></a>00045                                                                               \
<a name="l00046"></a>00046     <span class="comment">/* The largest possible value represented by the type.  */</span>                \
<a name="l00047"></a>00047     static type Max() { return VTK_##macro##_MAX; }                           \
<a name="l00048"></a>00048                                                                               \
<a name="l00049"></a>00049     <span class="comment">/* Whether the type is signed.  */</span>                                        \
<a name="l00050"></a>00050     static int IsSigned() { return isSigned; }                                \
<a name="l00051"></a>00051                                                                               \
<a name="l00052"></a>00052     <span class="comment">/* An "alias" type that is the same size and signedness.  */</span>              \
<a name="l00053"></a>00053     typedef vtkType##name SizedType;                                          \
<a name="l00054"></a>00054                                                                               \
<a name="l00055"></a>00055     <span class="comment">/* A name for the type indicating its size and signedness.  */</span>            \
<a name="l00056"></a>00056     static const char* SizedName() { return #name; }                          \
<a name="l00057"></a>00057                                                                               \
<a name="l00058"></a>00058     <span class="comment">/* A type to use for printing or parsing values in strings.  */</span>           \
<a name="l00059"></a>00059     typedef print PrintType;                                                  \
<a name="l00060"></a>00060                                                                               \
<a name="l00061"></a>00061     <span class="comment">/* A format for parsing values from strings.  Use with PrintType.  */</span>     \
<a name="l00062"></a>00062     static const char* ParseFormat() { return format; }                       \
<a name="l00063"></a>00063   }
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">// Define traits for floating-point types.</span>
<a name="l00066"></a><a class="code" href="a02152.html#eb632fa989fab240186ab9574bd9702e">00066</a> <span class="preprocessor">#define VTK_TYPE_NAME_FLOAT float</span>
<a name="l00067"></a><a class="code" href="a02152.html#e1184e69305b483f29d5910372c8d287">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_DOUBLE double</span>
<a name="l00068"></a><a class="code" href="a02152.html#b4e11a41327dd819ea758979e12d925e">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_FLOAT FLOAT32</span>
<a name="l00069"></a><a class="code" href="a02152.html#2ee1d859d1feca370c87e30f6151f05a">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_DOUBLE FLOAT64</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">float</span>, FLOAT, 1, Float32, <span class="keywordtype">float</span>, <span class="stringliteral">"%f"</span>);
<a name="l00071"></a>00071 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">double</span>, DOUBLE, 1, Float64, <span class="keywordtype">double</span>, <span class="stringliteral">"%lf"</span>);
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="comment">// Define traits for char types.</span>
<a name="l00074"></a>00074 <span class="comment">// Note the print type is short because not all platforms support formating integers with char.</span>
<a name="l00075"></a><a class="code" href="a02152.html#b4be6558f9bc8499075f0320456a8d51">00075</a> <span class="preprocessor">#define VTK_TYPE_NAME_CHAR char</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#if VTK_TYPE_CHAR_IS_SIGNED</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_CHAR INT8</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">char</span>, CHAR, 1, Int8, <span class="keywordtype">short</span>, <span class="stringliteral">"%hd"</span>);
<a name="l00079"></a>00079 <span class="preprocessor">#else</span>
<a name="l00080"></a><a class="code" href="a02152.html#e47615fa8dbcb68f00d4ce24be2dcfba">00080</a> <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_CHAR UINT8</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">char</span>, CHAR, 0, UInt8, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>, <span class="stringliteral">"%hu"</span>);
<a name="l00082"></a>00082 <span class="preprocessor">#endif</span>
<a name="l00083"></a><a class="code" href="a02152.html#e3b27654e8c41b1c0c59e0bbb647b54f">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_SIGNED_CHAR signed char</span>
<a name="l00084"></a><a class="code" href="a02152.html#0a34c445443b96296a1bc8e82684bab6">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_UNSIGNED_CHAR unsigned char</span>
<a name="l00085"></a><a class="code" href="a02152.html#b97a1520a32e7930a3e0831867788381">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_SIGNED_CHAR INT8</span>
<a name="l00086"></a><a class="code" href="a02152.html#6f8d95554c75212d4cf6fd9f9649085f">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_UNSIGNED_CHAR UINT8</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">signed</span> <span class="keywordtype">char</span>, SIGNED_CHAR, 1, Int8, <span class="keywordtype">short</span>, <span class="stringliteral">"%hd"</span>);
<a name="l00088"></a>00088 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>, UNSIGNED_CHAR, 0, UInt8, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>, <span class="stringliteral">"%hu"</span>);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="comment">// Define traits for short types.</span>
<a name="l00091"></a><a class="code" href="a02152.html#d9c472ba3a43fe2a768bb8be5c649d78">00091</a> <span class="preprocessor">#define VTK_TYPE_NAME_SHORT short</span>
<a name="l00092"></a><a class="code" href="a02152.html#fc9372d510f56967b7aa33010155fdc7">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_UNSIGNED_SHORT unsigned short</span>
<a name="l00093"></a><a class="code" href="a02152.html#13b96c8c3ebe870c3f791027e87fb7cb">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_SHORT INT16</span>
<a name="l00094"></a><a class="code" href="a02152.html#798576da565661e59496860aecccf9e9">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_UNSIGNED_SHORT UINT16</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">short</span>, SHORT, 1, Int16, <span class="keywordtype">short</span>, <span class="stringliteral">"%hd"</span>);
<a name="l00096"></a>00096 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>, UNSIGNED_SHORT, 0, UInt16, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>,
<a name="l00097"></a>00097                 <span class="stringliteral">"%hu"</span>);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">// Define traits for int types.</span>
<a name="l00100"></a><a class="code" href="a02152.html#9af66afdea5fcaac4f653834789a4ed1">00100</a> <span class="preprocessor">#define VTK_TYPE_NAME_INT int</span>
<a name="l00101"></a><a class="code" href="a02152.html#2e7fbecce7ff6fb772fb60885320df8e">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_UNSIGNED_INT unsigned int</span>
<a name="l00102"></a><a class="code" href="a02152.html#72ea852abe6e202eb6de153b57efffac">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_INT INT32</span>
<a name="l00103"></a><a class="code" href="a02152.html#ded05774302781e3b73e1d1e59918c9c">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_SIZED_UNSIGNED_INT UINT32</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">int</span>, INT, 1, Int32, <span class="keywordtype">int</span>, <span class="stringliteral">"%d"</span>);
<a name="l00105"></a>00105 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, UNSIGNED_INT, 0, UInt32, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <span class="stringliteral">"%u"</span>);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="comment">// Define traits for long types.</span>
<a name="l00108"></a><a class="code" href="a02152.html#a0485212f2c067fbf1880c337234e8cf">00108</a> <span class="preprocessor">#define VTK_TYPE_NAME_LONG long</span>
<a name="l00109"></a><a class="code" href="a02152.html#829386e72a4c35c5250d7ce398dff232">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TYPE_NAME_UNSIGNED_LONG unsigned long</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#if VTK_SIZEOF_LONG == 4</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_LONG INT32</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_UNSIGNED_LONG UINT32</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">long</span>, LONG, 1, Int32, <span class="keywordtype">long</span>, <span class="stringliteral">"%ld"</span>);
<a name="l00114"></a>00114 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, UNSIGNED_LONG, 0, UInt32, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, <span class="stringliteral">"%lu"</span>);
<a name="l00115"></a>00115 <span class="preprocessor">#elif VTK_SIZEOF_LONG == 8</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_LONG INT64</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_UNSIGNED_LONG UINT64</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">long</span>, LONG, 1, Int64, <span class="keywordtype">long</span>, <span class="stringliteral">"%ld"</span>);
<a name="l00119"></a>00119 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, UNSIGNED_LONG, 0, UInt64, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, <span class="stringliteral">"%lu"</span>);
<a name="l00120"></a>00120 <span class="preprocessor">#else</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor"># error "Type long is not 4 or 8 bytes in size."</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00124"></a>00124 <span class="comment">// Define traits for long long types if they are enabled.</span>
<a name="l00125"></a>00125 <span class="preprocessor">#if defined(VTK_TYPE_USE_LONG_LONG)</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_NAME_LONG_LONG long long</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_NAME_UNSIGNED_LONG_LONG unsigned long long</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor"># if VTK_SIZEOF_LONG_LONG == 8</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#  define VTK_TYPE_SIZED_LONG_LONG INT64</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#  define VTK_TYPE_SIZED_UNSIGNED_LONG_LONG UINT64</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#  if defined(_MSC_VER) &amp;&amp; _MSC_VER &lt; 1400</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#   define VTK_TYPE_LONG_LONG_FORMAT "%I64"</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#   define VTK_TYPE_LONG_LONG_FORMAT "%ll"</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">long</span> <span class="keywordtype">long</span>, LONG_LONG, 1, Int64, <span class="keywordtype">long</span> <span class="keywordtype">long</span>,
<a name="l00137"></a>00137                 VTK_TYPE_LONG_LONG_FORMAT <span class="stringliteral">"d"</span>);
<a name="l00138"></a>00138 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>, UNSIGNED_LONG_LONG, 0, UInt64,
<a name="l00139"></a>00139                 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>, VTK_TYPE_LONG_LONG_FORMAT <span class="stringliteral">"u"</span>);
<a name="l00140"></a>00140 <span class="preprocessor">#  undef VTK_TYPE_LONG_LONG_FORMAT</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor"># else</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#  error "Type long long is not 8 bytes in size."</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>
<a name="l00146"></a>00146 <span class="comment">// Define traits for __int64 types if they are enabled.</span>
<a name="l00147"></a>00147 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64)</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_NAME___INT64 __int64</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_NAME_UNSIGNED___INT64 unsigned __int64</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor"># if VTK_SIZEOF___INT64 == 8</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor">#  define VTK_TYPE_SIZED___INT64 INT64</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor">#  define VTK_TYPE_SIZED_UNSIGNED___INT64 UINT64</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span><a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(__int64, __INT64, 1, Int64, __int64, <span class="stringliteral">"%I64d"</span>);
<a name="l00154"></a>00154 <a class="code" href="a02152.html#4b3b2e8f1cbaeab5118bb182a3492e88">VTK_TYPE_TRAITS</a>(<span class="keywordtype">unsigned</span> __int64, UNSIGNED___INT64, 0, UInt64,
<a name="l00155"></a>00155                 <span class="keywordtype">unsigned</span> __int64, <span class="stringliteral">"%I64u"</span>);
<a name="l00156"></a>00156 <span class="preprocessor"># else</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor">#  error "Type __int64 is not 8 bytes in size."</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00160"></a>00160 <span class="preprocessor"></span>
<a name="l00161"></a>00161 <span class="comment">// Define traits for vtkIdType.  The template specialization is</span>
<a name="l00162"></a>00162 <span class="comment">// already defined for the corresponding native type.</span>
<a name="l00163"></a><a class="code" href="a02152.html#f07d77db499f8f69d5a862cfe5f074ae">00163</a> <span class="preprocessor">#define VTK_TYPE_NAME_ID_TYPE vtkIdType</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span><span class="preprocessor">#if defined(VTK_USE_64BIT_IDS)</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_ID_TYPE INT64</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00167"></a><a class="code" href="a02152.html#94ce5c8d543c9325148cbb6e821fbfd9">00167</a> <span class="preprocessor"></span><span class="preprocessor"># define VTK_TYPE_SIZED_ID_TYPE INT32</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>
<a name="l00170"></a>00170 <span class="preprocessor">#undef VTK_TYPE_TRAITS</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>
<a name="l00172"></a>00172 <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&nbsp;
<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>