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 #define vtkMPIPixelTTMacro1(_ctype) \
27 template<> \
28 class vtkMPIPixelTT<_ctype> \
29 { \
30 public: \
31  static MPI_Datatype MPIType; \
32  static int VTKType; \
33 };
34 
37 vtkMPIPixelTTMacro1(signed char)
38 vtkMPIPixelTTMacro1(unsigned char)
40 vtkMPIPixelTTMacro1(unsigned short)
42 vtkMPIPixelTTMacro1(unsigned int)
44 vtkMPIPixelTTMacro1(unsigned long)
46 vtkMPIPixelTTMacro1(double)
47 //vtkMPIPixelTTMacro1(vtkIdType)
48 vtkMPIPixelTTMacro1(long long)
49 vtkMPIPixelTTMacro1(unsigned long long)
50 
51 #endif
52 // VTK-HeaderTest-Exclude: vtkMPIPixelTT.h
#define vtkMPIPixelTTMacro1(_ctype)
Definition: vtkMPIPixelTT.h:26