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

Method GetCurrentIndex

Common/DataModel/vtkDataObjectTreeIterator.cxx:228–240  ·  view source on GitHub ↗

Returns the full-tree index for the current location.

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 8

IsDoneWithTraversalMethod · 0.95
GetCurrentIndexMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected