Skip to content

RoseAst::iterator::skipChildrenOnForward

Cause children to be skipped on the next advancement.

Synopsis

Declared in <src/midend/abstractLayer/RoseAst.h>

void
skipChildrenOnForward();

Description

This function marks the iterator so that it's next increment operator will advance over the current node's children without visiting them. The children are skipped only for the immediate next forward iteration (this is useful when used in the iterator idiom). This function is specific to tree iteration and allows to take tree structure into account although we are traversing the tree nodes as a sequence.

Created with MrDocs