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

Method operator()

Common/DataModel/vtkCellArray.cxx:373–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 {
372 template <class OffsetsT, class ConnectivityT>
373 void operator()(OffsetsT* offsets, ConnectivityT* vtkNotUsed(conn), vtkIdType cellId,
374 const vtkIdType endCellId, vtkIdType& maxCellSize) const
375 {
376 maxCellSize = 0;
377 auto offsetsRange = GetRange(offsets);
378 for (; cellId < endCellId; ++cellId)
379 {
380 maxCellSize =
381 std::max<vtkIdType>(maxCellSize, offsetsRange[cellId + 1] - offsetsRange[cellId]);
382 }
383 }
384 };
385
386 void operator()(vtkIdType cellId, vtkIdType endCellId)

Callers

nothing calls this directly

Calls 1

GetRangeFunction · 0.50

Tested by

no test coverage detected