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

Method GetGlobalIndexFromLocal

Common/DataModel/vtkHyperTree.cxx:347–361  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

345
346//---------------------------------------------------------------------------
347vtkIdType vtkHyperTree::GetGlobalIndexFromLocal(vtkIdType index) const
348{
349 if (!this->Datas->GlobalIndexTable.empty())
350 {
351 // Case explicit global node index
352 assert("pre: not_validindex" && index >= 0 &&
353 index < (vtkIdType)this->Datas->GlobalIndexTable.size());
354 assert("pre: not_positive_globalindex" && this->Datas->GlobalIndexTable[index] >= 0);
355 return this->Datas->GlobalIndexTable[index];
356 }
357 // Case implicit global node index
358 assert("pre: not_positive_startindex" && this->Datas->GlobalIndexStart >= 0);
359 assert("pre: not_validindex" && index >= 0);
360 return this->Datas->GlobalIndexStart + index;
361}
362
363//---------------------------------------------------------------------------
364vtkIdType vtkHyperTree::GetGlobalNodeIndexMax() const

Callers 15

InitializeForReaderMethod · 0.95
ReadPieceDataMethod · 0.80
WriteTrees_0Method · 0.80
GetGlobalNodeIndexMethod · 0.80
GetGlobalNodeIndexMethod · 0.80
GetGlobalNodeIndexMethod · 0.80
GetGlobalNodeIndexMethod · 0.80
GetGlobalNodeIndexMethod · 0.80
GetGlobalNodeIndexMethod · 0.80
GenerateUnbalancedMethod · 0.80

Calls 3

assertFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45