Sophie

Sophie

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

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/vtkTemplateAliasMacro.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/vtkTemplateAliasMacro.h</h1><a href="a02141.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: vtkTemplateAliasMacro.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="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkTemplateAliasMacro_h</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTemplateAliasMacro_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02152.html">vtkTypeTraits.h</a>"</span>
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="comment">// Allow individual switching of support for each scalar size/signedness.</span>
<a name="l00044"></a>00044 <span class="comment">// These could be made advanced user options to be configured by CMake.</span>
<a name="l00045"></a><a class="code" href="a02141.html#3d4f9d4148bbc1d7f0850237944283c1">00045</a> <span class="preprocessor">#define VTK_USE_INT8 1</span>
<a name="l00046"></a><a class="code" href="a02141.html#6a22b4c573674b1e92552ea48868c7ff">00046</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_UINT8 1</span>
<a name="l00047"></a><a class="code" href="a02141.html#71b7c06592e08b95707732867781dcd3">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_INT16 1</span>
<a name="l00048"></a><a class="code" href="a02141.html#bced9316d1cb011553b8c58dc9f8128b">00048</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_UINT16 1</span>
<a name="l00049"></a><a class="code" href="a02141.html#a4da7c282968dcbac5345ce68fd0ab3c">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_INT32 1</span>
<a name="l00050"></a><a class="code" href="a02141.html#13e0d3413b0654cbf1ea967f8694cffe">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_UINT32 1</span>
<a name="l00051"></a><a class="code" href="a02141.html#b8883e43b84d9bcc29a70f38c0a553e7">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_INT64 1</span>
<a name="l00052"></a><a class="code" href="a02141.html#8a57b0c4ce644040928e5d995440abaf">00052</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_UINT64 1</span>
<a name="l00053"></a><a class="code" href="a02141.html#0cbd48556f29eb1bceae45e3279976e6">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_FLOAT32 1</span>
<a name="l00054"></a><a class="code" href="a02141.html#94845c3274104b67376b1cc0780086f2">00054</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USE_FLOAT64 1</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="comment">// Force UINT64 off if we cannot implement support for it.</span>
<a name="l00057"></a>00057 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64) &amp;&amp; !defined(VTK_TYPE_CONVERT_UI64_TO_DOUBLE)</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor"># undef VTK_USE_UINT64</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor"># define VTK_USE_UINT64 0</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="comment">//--------------------------------------------------------------------------</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="comment">// Define helper macros to switch types on and off.</span>
<a name="l00065"></a><a class="code" href="a02141.html#96fdedaba1ae477fff3ed35a9aaab1e0">00065</a> <span class="preprocessor">#define vtkTemplateAliasMacroCase(typeN, call)                                \</span>
<a name="l00066"></a>00066 <span class="preprocessor">  vtkTemplateAliasMacroCase0(typeN, call, VTK_TYPE_SIZED_##typeN)</span>
<a name="l00067"></a><a class="code" href="a02141.html#1091043f5152d1ff58d03e5b13343e60">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase0(typeN, call, sized)                        \</span>
<a name="l00068"></a>00068 <span class="preprocessor">  vtkTemplateAliasMacroCase1(typeN, call, sized)</span>
<a name="l00069"></a><a class="code" href="a02141.html#6a3e660c1a6d111baa50b3f6d860e024">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase1(typeN, call, sized)                        \</span>
<a name="l00070"></a>00070 <span class="preprocessor">  vtkTemplateAliasMacroCase2(typeN, call, VTK_USE_##sized)</span>
<a name="l00071"></a><a class="code" href="a02141.html#c8d64aae510c6f0971c4a5a4c98d96aa">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase2(typeN, call, value)                        \</span>
<a name="l00072"></a>00072 <span class="preprocessor">  vtkTemplateAliasMacroCase3(typeN, call, value)</span>
<a name="l00073"></a><a class="code" href="a02141.html#2a2bea9dd602f3f1c63c7ae94887f9b7">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase3(typeN, call, value)                        \</span>
<a name="l00074"></a>00074 <span class="preprocessor">  vtkTemplateAliasMacroCase_##value(typeN, call)</span>
<a name="l00075"></a><a class="code" href="a02141.html#f0d1705208c6f5da4190fe42a5aa4cdb">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase_0(typeN, call)                              \</span>
<a name="l00076"></a>00076 <span class="preprocessor">  case VTK_##typeN:                                                           \</span>
<a name="l00077"></a>00077 <span class="preprocessor">    {                                                                         \</span>
<a name="l00078"></a>00078 <span class="preprocessor">    vtkGenericWarningMacro("Support for VTK_" #typeN " not compiled.");       \</span>
<a name="l00079"></a>00079 <span class="preprocessor">    }; break</span>
<a name="l00080"></a><a class="code" href="a02141.html#8b6a1cf6d57b40db01dc270c38b18c0b">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define vtkTemplateAliasMacroCase_1(typeN, call)                              \</span>
<a name="l00081"></a>00081 <span class="preprocessor">  case VTK_##typeN:                                                           \</span>
<a name="l00082"></a>00082 <span class="preprocessor">    {                                                                         \</span>
<a name="l00083"></a>00083 <span class="preprocessor">    typedef vtkTypeTraits&lt;VTK_TYPE_NAME_##typeN&gt;::SizedType VTK_TT; call;     \</span>
<a name="l00084"></a>00084 <span class="preprocessor">    }; break</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
<a name="l00086"></a>00086 <span class="comment">// Add "long long" to the template macro if it is enabled.</span>
<a name="l00087"></a>00087 <span class="preprocessor">#if defined(VTK_TYPE_USE_LONG_LONG)</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor"># define vtkTemplateAliasMacroCase_ll(typeN, call)                            \</span>
<a name="l00089"></a>00089 <span class="preprocessor">             vtkTemplateAliasMacroCase(typeN, call);</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00091"></a><a class="code" href="a02141.html#b250c8e433781b47abe00d41e092e562">00091</a> <span class="preprocessor"></span><span class="preprocessor"># define vtkTemplateAliasMacroCase_ll(typeN, call)</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a>00094 <span class="comment">// Add "__int64" to the template macro if it is enabled.</span>
<a name="l00095"></a>00095 <span class="preprocessor">#if defined(VTK_TYPE_USE___INT64)</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor"># define vtkTemplateAliasMacroCase_i64(typeN, call)                           \</span>
<a name="l00097"></a>00097 <span class="preprocessor">             vtkTemplateAliasMacroCase(typeN, call);</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00099"></a><a class="code" href="a02141.html#178f7b9a89c7dd93bbe43f17652ad812">00099</a> <span class="preprocessor"></span><span class="preprocessor"># define vtkTemplateAliasMacroCase_i64(typeN, call)</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>
<a name="l00102"></a>00102 <span class="comment">// Define a macro to dispatch calls to a template instantiated over</span>
<a name="l00103"></a>00103 <span class="comment">// the aliased scalar types.</span>
<a name="l00104"></a><a class="code" href="a02141.html#407e779de463495a846f108d60fe3bc9">00104</a> <span class="preprocessor">#define vtkTemplateAliasMacro(call)                                           \</span>
<a name="l00105"></a>00105 <span class="preprocessor">  vtkTemplateAliasMacroCase(DOUBLE, call);                                    \</span>
<a name="l00106"></a>00106 <span class="preprocessor">  vtkTemplateAliasMacroCase(FLOAT, call);                                     \</span>
<a name="l00107"></a>00107 <span class="preprocessor">  vtkTemplateAliasMacroCase_ll(LONG_LONG, call)                               \</span>
<a name="l00108"></a>00108 <span class="preprocessor">  vtkTemplateAliasMacroCase_ll(UNSIGNED_LONG_LONG, call)                      \</span>
<a name="l00109"></a>00109 <span class="preprocessor">  vtkTemplateAliasMacroCase_i64(__INT64, call)                                \</span>
<a name="l00110"></a>00110 <span class="preprocessor">  vtkTemplateAliasMacroCase_i64(UNSIGNED___INT64, call)                       \</span>
<a name="l00111"></a>00111 <span class="preprocessor">  vtkTemplateAliasMacroCase(ID_TYPE, call);                                   \</span>
<a name="l00112"></a>00112 <span class="preprocessor">  vtkTemplateAliasMacroCase(LONG, call);                                      \</span>
<a name="l00113"></a>00113 <span class="preprocessor">  vtkTemplateAliasMacroCase(UNSIGNED_LONG, call);                             \</span>
<a name="l00114"></a>00114 <span class="preprocessor">  vtkTemplateAliasMacroCase(INT, call);                                       \</span>
<a name="l00115"></a>00115 <span class="preprocessor">  vtkTemplateAliasMacroCase(UNSIGNED_INT, call);                              \</span>
<a name="l00116"></a>00116 <span class="preprocessor">  vtkTemplateAliasMacroCase(SHORT, call);                                     \</span>
<a name="l00117"></a>00117 <span class="preprocessor">  vtkTemplateAliasMacroCase(UNSIGNED_SHORT, call);                            \</span>
<a name="l00118"></a>00118 <span class="preprocessor">  vtkTemplateAliasMacroCase(CHAR, call);                                      \</span>
<a name="l00119"></a>00119 <span class="preprocessor">  vtkTemplateAliasMacroCase(SIGNED_CHAR, call);                               \</span>
<a name="l00120"></a>00120 <span class="preprocessor">  vtkTemplateAliasMacroCase(UNSIGNED_CHAR, call)</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span>
<a name="l00122"></a>00122 <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>