RoseAst::iterator::withoutNullValues
Mode to enable or disable skipping null child pointers.
Synopsis
Declared in <src/midend/abstractLayer/RoseAst.h>
iterator&
withoutNullValues();
Description
The withoutNullValues mode causes the iterator to skip over null child pointers, while the withNullValues mode causse null child pointers to be followed followed. The mode affects subsequent advancement of the iterator, not its current value. In other words, in the withNullValues mode the iterator dereference operator will always return non‐null values after its next increment. The default mode is withoutNullValues.
The function returns this iterator and can therefore be called together with begin, like this:
RoseAst::iterator i = ast.begin().withNullValues();
@{
Return Value
AST iterator.
Created with MrDocs