| 521 | //------------------------------------------------------------------------------ |
| 522 | |
| 523 | unsigned int vtkHyperTreeGridNonOrientedSuperCursor::GetIndiceEntry(unsigned int icursor) |
| 524 | { |
| 525 | assert("pre: icursor != IndiceCentralCursor" && icursor != this->IndiceCentralCursor); |
| 526 | assert("pre: valid_icursor" && icursor < this->NumberOfCursors); |
| 527 | |
| 528 | const long refId = icursor > this->IndiceCentralCursor |
| 529 | ? this->FirstCurrentNeighboorReferenceEntry + icursor - 1 |
| 530 | : this->FirstCurrentNeighboorReferenceEntry + icursor; |
| 531 | |
| 532 | assert("pre: valid_icursor" && 0 <= refId && refId < long(this->ReferenceEntries.size())); |
| 533 | assert("pre: valid_icursor" && this->ReferenceEntries[refId] < this->Entries.size()); |
| 534 | |
| 535 | return this->ReferenceEntries[refId]; |
| 536 | } |
| 537 | |
| 538 | //------------------------------------------------------------------------------ |
| 539 |
no test coverage detected