 |
VTK
9.3.0
|
Go to the documentation of this file.
27#ifndef vtkTemplateAliasMacro_h
28#define vtkTemplateAliasMacro_h
35#define VTK_USE_UINT8 1
36#define VTK_USE_INT16 1
37#define VTK_USE_UINT16 1
38#define VTK_USE_INT32 1
39#define VTK_USE_UINT32 1
40#define VTK_USE_INT64 1
41#define VTK_USE_UINT64 1
42#define VTK_USE_FLOAT32 1
43#define VTK_USE_FLOAT64 1
48#define vtkTemplateAliasMacroCase(typeN, call) \
49 vtkTemplateAliasMacroCase0(typeN, call, VTK_TYPE_SIZED_##typeN)
50#define vtkTemplateAliasMacroCase0(typeN, call, sized) \
51 vtkTemplateAliasMacroCase1(typeN, call, sized)
52#define vtkTemplateAliasMacroCase1(typeN, call, sized) \
53 vtkTemplateAliasMacroCase2(typeN, call, VTK_USE_##sized)
54#define vtkTemplateAliasMacroCase2(typeN, call, value) \
55 vtkTemplateAliasMacroCase3(typeN, call, value)
56#define vtkTemplateAliasMacroCase3(typeN, call, value) \
57 vtkTemplateAliasMacroCase_##value(typeN, call)
58#define vtkTemplateAliasMacroCase_0(typeN, call) \
61 vtkGenericWarningMacro("Support for VTK_" #typeN " not compiled."); \
64#define vtkTemplateAliasMacroCase_1(typeN, call) \
67 typedef vtkTypeTraits<VTK_TYPE_NAME_##typeN>::SizedType VTK_TT; \
74#define vtkTemplateAliasMacro(call) \
75 vtkTemplateAliasMacroCase(DOUBLE, call); \
76 vtkTemplateAliasMacroCase(FLOAT, call); \
77 vtkTemplateAliasMacroCase(LONG_LONG, call); \
78 vtkTemplateAliasMacroCase(UNSIGNED_LONG_LONG, call); \
79 vtkTemplateAliasMacroCase(ID_TYPE, call); \
80 vtkTemplateAliasMacroCase(LONG, call); \
81 vtkTemplateAliasMacroCase(UNSIGNED_LONG, call); \
82 vtkTemplateAliasMacroCase(INT, call); \
83 vtkTemplateAliasMacroCase(UNSIGNED_INT, call); \
84 vtkTemplateAliasMacroCase(SHORT, call); \
85 vtkTemplateAliasMacroCase(UNSIGNED_SHORT, call); \
86 vtkTemplateAliasMacroCase(CHAR, call); \
87 vtkTemplateAliasMacroCase(SIGNED_CHAR, call); \
88 vtkTemplateAliasMacroCase(UNSIGNED_CHAR, call)