Go to the documentation of this file.
39 #ifndef vtkTemplateAliasMacro_h
40 #define vtkTemplateAliasMacro_h
46 #define VTK_USE_INT8 1
47 #define VTK_USE_UINT8 1
48 #define VTK_USE_INT16 1
49 #define VTK_USE_UINT16 1
50 #define VTK_USE_INT32 1
51 #define VTK_USE_UINT32 1
52 #define VTK_USE_INT64 1
53 #define VTK_USE_UINT64 1
54 #define VTK_USE_FLOAT32 1
55 #define VTK_USE_FLOAT64 1
60 #define vtkTemplateAliasMacroCase(typeN, call) \
61 vtkTemplateAliasMacroCase0(typeN, call, VTK_TYPE_SIZED_##typeN)
62 #define vtkTemplateAliasMacroCase0(typeN, call, sized) \
63 vtkTemplateAliasMacroCase1(typeN, call, sized)
64 #define vtkTemplateAliasMacroCase1(typeN, call, sized) \
65 vtkTemplateAliasMacroCase2(typeN, call, VTK_USE_##sized)
66 #define vtkTemplateAliasMacroCase2(typeN, call, value) \
67 vtkTemplateAliasMacroCase3(typeN, call, value)
68 #define vtkTemplateAliasMacroCase3(typeN, call, value) \
69 vtkTemplateAliasMacroCase_##value(typeN, call)
70 #define vtkTemplateAliasMacroCase_0(typeN, call) \
73 vtkGenericWarningMacro("Support for VTK_" #typeN " not compiled."); \
75 #define vtkTemplateAliasMacroCase_1(typeN, call) \
78 typedef vtkTypeTraits<VTK_TYPE_NAME_##typeN>::SizedType VTK_TT; call; \
83 #define vtkTemplateAliasMacro(call) \
84 vtkTemplateAliasMacroCase(DOUBLE, call); \
85 vtkTemplateAliasMacroCase(FLOAT, call); \
86 vtkTemplateAliasMacroCase(LONG_LONG, call); \
87 vtkTemplateAliasMacroCase(UNSIGNED_LONG_LONG, call); \
88 vtkTemplateAliasMacroCase(ID_TYPE, call); \
89 vtkTemplateAliasMacroCase(LONG, call); \
90 vtkTemplateAliasMacroCase(UNSIGNED_LONG, call); \
91 vtkTemplateAliasMacroCase(INT, call); \
92 vtkTemplateAliasMacroCase(UNSIGNED_INT, call); \
93 vtkTemplateAliasMacroCase(SHORT, call); \
94 vtkTemplateAliasMacroCase(UNSIGNED_SHORT, call); \
95 vtkTemplateAliasMacroCase(CHAR, call); \
96 vtkTemplateAliasMacroCase(SIGNED_CHAR, call); \
97 vtkTemplateAliasMacroCase(UNSIGNED_CHAR, call)