1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
Index: VTK-9.0.1/Common/Core/vtkDataArray.cxx
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkDataArray.cxx
+++ VTK-9.0.1/Common/Core/vtkDataArray.cxx
@@ -1627,7 +1627,7 @@ struct ScalarRangeDispatchWrapper
void operator()(ArrayT* array)
{
this->Success = vtkDataArrayPrivate::DoComputeScalarRange(
- array, this->Range, vtkDataArrayPrivate::AllValues());
+ array, this->Range, vtkDataArrayPrivate::vtkAllValues());
}
};
@@ -1646,7 +1646,7 @@ struct VectorRangeDispatchWrapper
void operator()(ArrayT* array)
{
this->Success = vtkDataArrayPrivate::DoComputeVectorRange(
- array, this->Range, vtkDataArrayPrivate::AllValues());
+ array, this->Range, vtkDataArrayPrivate::vtkAllValues());
}
};
Index: VTK-9.0.1/Common/Core/vtkDataArray.h
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkDataArray.h
+++ VTK-9.0.1/Common/Core/vtkDataArray.h
@@ -599,7 +599,7 @@ vtkArrayDownCast_FastCastMacro(vtkDataAr
// vtkGenericDataArray.h as well.
namespace vtkDataArrayPrivate
{
-struct AllValues
+struct vtkAllValues
{
};
struct FiniteValues
Index: VTK-9.0.1/Common/Core/vtkGenericDataArray.txx
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkGenericDataArray.txx
+++ VTK-9.0.1/Common/Core/vtkGenericDataArray.txx
@@ -1192,7 +1192,7 @@ bool vtkGenericDataArray<DerivedT, Value
using namespace vtk_GDA_detail;
using Supported = IsSupported<DerivedT, ValueTypeT>;
return ComputeScalarValueRangeImpl(
- static_cast<DerivedT*>(this), ranges, vtkDataArrayPrivate::AllValues{}, Supported{});
+ static_cast<DerivedT*>(this), ranges, vtkDataArrayPrivate::vtkAllValues{}, Supported{});
}
//-----------------------------------------------------------------------------
@@ -1202,7 +1202,7 @@ bool vtkGenericDataArray<DerivedT, Value
using namespace vtk_GDA_detail;
using Supported = IsSupported<DerivedT, ValueTypeT>;
return ComputeVectorValueRangeImpl(
- static_cast<DerivedT*>(this), range, vtkDataArrayPrivate::AllValues{}, Supported{});
+ static_cast<DerivedT*>(this), range, vtkDataArrayPrivate::vtkAllValues{}, Supported{});
}
//-----------------------------------------------------------------------------
Index: VTK-9.0.1/Common/Core/vtkDataArrayPrivate.txx
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkDataArrayPrivate.txx
+++ VTK-9.0.1/Common/Core/vtkDataArrayPrivate.txx
@@ -301,7 +301,7 @@ template <int NumComps>
struct ComputeScalarRange
{
template <class ArrayT, typename RangeValueType>
- bool operator()(ArrayT* array, RangeValueType* ranges, AllValues)
+ bool operator()(ArrayT* array, RangeValueType* ranges, vtkAllValues)
{
AllValuesMinAndMax<NumComps, ArrayT> minmax(array);
vtkSMPTools::For(0, array->GetNumberOfTuples(), minmax);
@@ -435,7 +435,7 @@ public:
};
template <class ArrayT, typename RangeValueType>
-bool GenericComputeScalarRange(ArrayT* array, RangeValueType* ranges, AllValues)
+bool GenericComputeScalarRange(ArrayT* array, RangeValueType* ranges, vtkAllValues)
{
AllValuesGenericMinAndMax<ArrayT> minmax(array);
vtkSMPTools::For(0, array->GetNumberOfTuples(), minmax);
@@ -518,7 +518,7 @@ bool DoComputeScalarRange(ArrayT* array,
//----------------------------------------------------------------------------
// generic implementation that operates on ValueType.
template <typename ArrayT, typename RangeValueType>
-bool DoComputeVectorRange(ArrayT* array, RangeValueType range[2], AllValues)
+bool DoComputeVectorRange(ArrayT* array, RangeValueType range[2], vtkAllValues)
{
range[0] = vtkTypeTraits<RangeValueType>::Max();
range[1] = vtkTypeTraits<RangeValueType>::Min();
Index: VTK-9.0.1/Common/Core/vtkGenericDataArray.h
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkGenericDataArray.h
+++ VTK-9.0.1/Common/Core/vtkGenericDataArray.h
@@ -414,7 +414,7 @@ namespace vtkDataArrayPrivate
template <typename A, typename R, typename T>
bool DoComputeScalarRange(A*, R*, T);
template <typename A, typename R>
-bool DoComputeVectorRange(A*, R[2], AllValues);
+bool DoComputeVectorRange(A*, R[2], vtkAllValues);
template <typename A, typename R>
bool DoComputeVectorRange(A*, R[2], FiniteValues);
} // namespace vtkDataArrayPrivate
@@ -466,11 +466,11 @@ class vtkScaledSOADataArrayTemplate;
#define VTK_INSTANTIATE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType) \
template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
- ArrayType*, ValueType*, vtkDataArrayPrivate::AllValues); \
+ ArrayType*, ValueType*, vtkDataArrayPrivate::vtkAllValues); \
template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
ArrayType*, ValueType*, vtkDataArrayPrivate::FiniteValues); \
template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
- ArrayType*, ValueType[2], vtkDataArrayPrivate::AllValues); \
+ ArrayType*, ValueType[2], vtkDataArrayPrivate::vtkAllValues); \
template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
ArrayType*, ValueType[2], vtkDataArrayPrivate::FiniteValues);
@@ -516,18 +516,18 @@ namespace vtkDataArrayPrivate
template <typename A, typename R, typename T>
bool DoComputeScalarRange(A*, R*, T);
template <typename A, typename R>
-bool DoComputeVectorRange(A*, R[2], AllValues);
+bool DoComputeVectorRange(A*, R[2], vtkAllValues);
template <typename A, typename R>
bool DoComputeVectorRange(A*, R[2], FiniteValues);
} // namespace vtkDataArrayPrivate
#define VTK_DECLARE_VALUERANGE_ARRAYTYPE(ArrayType, ValueType) \
extern template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
- ArrayType*, ValueType*, vtkDataArrayPrivate::AllValues); \
+ ArrayType*, ValueType*, vtkDataArrayPrivate::vtkAllValues); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeScalarRange( \
ArrayType*, ValueType*, vtkDataArrayPrivate::FiniteValues); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
- ArrayType*, ValueType[2], vtkDataArrayPrivate::AllValues); \
+ ArrayType*, ValueType[2], vtkDataArrayPrivate::vtkAllValues); \
extern template VTKCOMMONCORE_EXPORT bool DoComputeVectorRange( \
ArrayType*, ValueType[2], vtkDataArrayPrivate::FiniteValues);
|