------------------------------------------------------------------------------
| 527 | |
| 528 | //------------------------------------------------------------------------------ |
| 529 | unsigned 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 | //------------------------------------------------------------------------------ |
| 550 | unsigned int* vtkOverlappingAMRMetaData::GetChildren( |
no test coverage detected