MCPcopy Create free account
hub / github.com/Kitware/VTK / operator()

Method operator()

Filters/General/vtkSumTables.cxx:174–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void operator()(vtkIdType begin, vtkIdType end)
175 {
176 if (this->Result->IsIntegral() && this->Summand->IsIntegral())
177 {
178 if (IsSigned(this->Result->GetDataType()))
179 {
180 if (IsSigned(this->Summand->GetDataType()))
181 {
182 this->SumIntegral<vtkTypeInt64, vtkTypeInt64>(begin, end);
183 }
184 else
185 {
186 this->SumIntegral<vtkTypeInt64, vtkTypeUInt64>(begin, end);
187 }
188 }
189 else
190 {
191 if (IsSigned(this->Summand->GetDataType()))
192 {
193 this->SumIntegral<vtkTypeUInt64, vtkTypeInt64>(begin, end);
194 }
195 else
196 {
197 this->SumIntegral<vtkTypeUInt64, vtkTypeUInt64>(begin, end);
198 }
199 }
200 }
201 else
202 {
203 this->SumFloatingPoint(begin, end);
204 }
205 }
206
207 vtkDataArray* Result;
208 vtkDataArray* Summand;

Callers

nothing calls this directly

Calls 4

SumFloatingPointMethod · 0.95
IsSignedFunction · 0.85
IsIntegralMethod · 0.80
GetDataTypeMethod · 0.45

Tested by

no test coverage detected