MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getChildRecursive

Method getChildRecursive

src/tools/ecode/plugins/debugger/models/variablesmodel.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::optional<ModelVariableNode::NodePtr>
30ModelVariableNode::getChildRecursive( int variablesReference ) {
31 if ( var.variablesReference == variablesReference )
32 return shared_from_this();
33
34 for ( const auto& child : children ) {
35 auto found = child->getChild( variablesReference );
36 if ( found )
37 return found;
38 }
39 return {};
40}
41
42void ModelVariableNode::clear() {
43 children.clear();

Callers 1

addVariablesMethod · 0.80

Calls 1

getChildMethod · 0.45

Tested by

no test coverage detected