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

Method operator()

Common/DataModel/vtkCellArray.cxx:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330{
331 template <class OffsetsT, class ConnectivityT>
332 void operator()(OffsetsT* offsets, ConnectivityT* conn, vtkIdType numCells,
333 vtkIdType connectivitySize, bool& result) const
334 {
335 using ValueType = GetAPIType<OffsetsT>;
336 using AccessorType = vtkDataArrayAccessor<OffsetsT>;
337 result = (offsets->Allocate(numCells + 1) && conn->Allocate(connectivitySize));
338 if (result)
339 {
340 AccessorType accessor(offsets);
341 ValueType firstOffset = 0;
342 accessor.InsertNext(firstOffset);
343 }
344 }
345};
346
347struct ResizeExactImpl

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected