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