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

Method getChild

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

Source from the content-addressed store, hash-verified

52}
53
54std::optional<ModelVariableNode::NodePtr> ModelVariableNode::getChild( int variablesReference ) {
55 auto found = std::find_if( children.begin(), children.end(),
56 [variablesReference]( const NodePtr& child ) {
57 return child->var.variablesReference == variablesReference;
58 } );
59 return ( found != children.end() ) ? *found : std::optional<NodePtr>{};
60}
61
62std::optional<ModelVariableNode::NodePtr> ModelVariableNode::getChild( const std::string& name ) {
63 auto found = std::find_if( children.begin(), children.end(), [&name]( const NodePtr& child ) {

Callers 3

getChildRecursiveMethod · 0.45
addVariablesMethod · 0.45
resolvePathMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected