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

Method GetActualMemorySizeBytes

Common/DataModel/vtkUniformHyperTreeGrid.cxx:428–446  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

426
427//------------------------------------------------------------------------------
428unsigned long vtkUniformHyperTreeGrid::GetActualMemorySizeBytes()
429{
430 unsigned long size = 0; // in bytes
431
432 size += (this->Superclass::GetActualMemorySize() << 10);
433
434 // Iterate over all trees in grid
435 vtkHyperTreeGridIterator it;
436 it.Initialize(this);
437 while (vtkHyperTree* tree = it.GetNextTree())
438 {
439 size += tree->GetActualMemorySizeBytes();
440 }
441
442 // Size of root cells sizes
443 size += 3 * sizeof(double);
444
445 return size;
446}
447VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

GetNextTreeMethod · 0.80
InitializeMethod · 0.45

Tested by

no test coverage detected