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

Method Next

Common/DataModel/vtkDataObjectTreeIterator.cxx:202–225  ·  view source on GitHub ↗

Go to the next element.

Source from the content-addressed store, hash-verified

200
201 // Go to the next element.
202 void Next()
203 {
204 if (this->PassSelf)
205 {
206 this->PassSelf = false;
207 }
208 else if (this->ChildIterator)
209 {
210 this->ChildIterator->Next();
211 if (this->ChildIterator->IsDoneWithTraversal())
212 {
213 this->ChildIndex++;
214 if (this->Reverse)
215 {
216 ++this->ReverseIter;
217 }
218 else
219 {
220 ++this->Iter;
221 }
222 this->InitChildIterator();
223 }
224 }
225 }
226
227 // Returns the full-tree index for the current location.
228 vtkDataObjectTreeIndex GetCurrentIndex()

Callers 1

NextInternalMethod · 0.45

Calls 2

InitChildIteratorMethod · 0.95
IsDoneWithTraversalMethod · 0.45

Tested by

no test coverage detected