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

Method operator()

IO/CellGrid/vtkCellGridReader.cxx:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76{
77 template <typename TArray>
78 void operator()(TArray* array, const nlohmann::json& values)
79 {
80 using ValueType = typename TArray::ValueType;
81 auto valueVector = values.get<std::vector<ValueType>>();
82 auto data = vtk::DataArrayValueRange(array).begin();
83 for (const auto& value : valueVector)
84 {
85 *(data++) = value;
86 }
87 }
88};
89
90void addCachedRange(vtkCellGridRangeQuery::CacheMap& rangeCache, vtkCellAttribute* attribute,

Callers

nothing calls this directly

Calls 2

DataArrayValueRangeFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected