| 52 | } |
| 53 | |
| 54 | std::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 | |
| 62 | std::optional<ModelVariableNode::NodePtr> ModelVariableNode::getChild( const std::string& name ) { |
| 63 | auto found = std::find_if( children.begin(), children.end(), [&name]( const NodePtr& child ) { |
no test coverage detected