VTK
vtkMPIPixelTT.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMPIPixelTT.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkMPIPixelTT_h
16 #define vtkMPIPixelTT_h
17 
18 #include "vtkType.h" // for vtk types
19 #include "vtkMPI.h"
20 
21 // Description:
22 // Traits class for converting from vtk data type enum
23 // to the appropriate C or MPI datatype.
24 template<typename T> class vtkMPIPixelTT;
25 
26 //BTX
27 #define vtkMPIPixelTTMacro1(_ctype) \
28 template<> \
29 class vtkMPIPixelTT<_ctype> \
30 { \
31 public: \
32  static MPI_Datatype MPIType; \
33  static int VTKType; \
34 };
35 
38 vtkMPIPixelTTMacro1(signed char)
39 vtkMPIPixelTTMacro1(unsigned char)
41 vtkMPIPixelTTMacro1(unsigned short)
43 vtkMPIPixelTTMacro1(unsigned int)
45 vtkMPIPixelTTMacro1(unsigned long)
47 vtkMPIPixelTTMacro1(double)
48 //vtkMPIPixelTTMacro1(vtkIdType)
49 #ifdef VTK_TYPE_USE_LONG_LONG
50 vtkMPIPixelTTMacro1(long long)
51 vtkMPIPixelTTMacro1(unsigned long long)
52 #endif
53 #ifdef VTK_TYPE_USE___INT64
54 vtkMPIPixelTTMacro1(__int64)
55 # ifdef VTK_TYPE_CONVERT_UI64_TO_DOUBLE
56 vtkMPIPixelTTMacro1(unsigned __int64)
57 # endif
58 #endif
59 //ETX
60 #endif
61 // VTK-HeaderTest-Exclude: vtkMPIPixelTT.h
#define vtkMPIPixelTTMacro1(_ctype)
Definition: vtkMPIPixelTT.h:27