MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TreeDFIterator

Method TreeDFIterator

source/opt/tree_iterator.h:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 using value_type = NodeTy;
55
56 explicit inline TreeDFIterator(NodePtr top_node) : current_(top_node) {
57 if (current_ && current_->begin() != current_->end())
58 parent_iterators_.emplace(make_pair(current_, current_->begin()));
59 }
60
61 // end() iterator.
62 inline TreeDFIterator() : TreeDFIterator(nullptr) {}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected