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

Method GetParents

Common/DataModel/vtkOverlappingAMRMetaData.cxx:529–547  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

527
528//------------------------------------------------------------------------------
529unsigned int* vtkOverlappingAMRMetaData::GetParents(
530 unsigned int level, unsigned int index, unsigned int& num)
531{
532 if (!this->HasChildrenInformation())
533 {
534 this->GenerateParentChildInformation();
535 }
536
537 if (level >= this->AllParents.size() || index >= this->AllParents[level].size() ||
538 this->AllParents[level][index].empty())
539 {
540 num = 0;
541 return nullptr;
542 }
543
544 num = static_cast<unsigned int>(this->AllParents[level][index].size());
545
546 return this->AllParents[level][index].data();
547}
548
549//------------------------------------------------------------------------------
550unsigned int* vtkOverlappingAMRMetaData::GetChildren(

Callers 1

PrintParentChildInfoMethod · 0.95

Calls 5

sizeMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected