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

Method GetDataSize

Common/Core/vtkStringArray.cxx:546–556  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

544
545//------------------------------------------------------------------------------
546vtkIdType vtkStringArray::GetDataSize() const
547{
548 size_t size = 0;
549 size_t numStrs = static_cast<size_t>(this->GetMaxId() + 1);
550 for (size_t i = 0; i < numStrs; i++)
551 {
552 size += this->Array[i].size() + 1;
553 // (+1) for termination character.
554 }
555 return static_cast<vtkIdType>(size);
556}
557
558//------------------------------------------------------------------------------
559// Set the tuple at the ith location using the jth tuple in the source array.

Callers 15

InsertCellsToGridMethod · 0.80
MoveInternalMeshMethod · 0.80
TestGDALRasterPaletteFunction · 0.80
ReadPNGFromStreamMethod · 0.80
WriteBinaryDataMethod · 0.80
GetSideSetMethod · 0.80
CreateArrayFunction · 0.80
GetDataFunction · 0.80
ConvertTo3DVTKMethod · 0.80
ReadPieceMethod · 0.80
DoCheckDataMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 9

TestGDALRasterPaletteFunction · 0.64
DoCheckDataMethod · 0.64
ExecuteMethod · 0.64
RegressionTestMethod · 0.64
TestGlobalIdsArrayFunction · 0.64
TestGeneratorFunction · 0.64
TestGeneratorFunction · 0.64
CheckScalarsArrayFunction · 0.64