Returns the full-tree index for the current location.
| 226 | |
| 227 | // Returns the full-tree index for the current location. |
| 228 | vtkDataObjectTreeIndex GetCurrentIndex() |
| 229 | { |
| 230 | vtkDataObjectTreeIndex index; |
| 231 | if (this->PassSelf || this->IsDoneWithTraversal() || !this->ChildIterator) |
| 232 | { |
| 233 | return index; |
| 234 | } |
| 235 | vtkDataObjectTreeIndex childIndex = this->ChildIterator->GetCurrentIndex(); |
| 236 | childIndex.reserve(childIndex.size() + 1); |
| 237 | index.push_back(this->ChildIndex); |
| 238 | index.insert(index.end(), childIndex.begin(), childIndex.end()); |
| 239 | return index; |
| 240 | } |
| 241 | }; |
| 242 | |
| 243 | // Description: |
nothing calls this directly
no test coverage detected