MCPcopy Create free account
hub / github.com/Kitware/VTK / AllocateCopy

Function AllocateCopy

Common/DataModel/vtkCellArray.h:267–270  ·  view source on GitHub ↗

* @brief Pre-allocate memory in internal data structures to match the used * size of the input vtkCellArray. Does not change * the number of cells, only the array capacities. Existing data is NOT * preserved. * @param other The vtkCellArray to use as a reference. * @return True if allocation succeeds. * @sa Squeeze AllocateEstimate AllocateExact */

Source from the content-addressed store, hash-verified

265 * @sa Squeeze AllocateEstimate AllocateExact
266 */
267 bool AllocateCopy(vtkCellArray* other)
268 {
269 return this->AllocateExact(other->GetNumberOfCells(), other->GetNumberOfConnectivityIds());
270 }
271
272 /**
273 * @brief ResizeExact() resizes the internal structures to hold @a numCells

Callers

nothing calls this directly

Calls 3

AllocateExactMethod · 0.45
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected