| 27 | |
| 28 | |
| 29 | std::vector<const AbstractTreeNode*> AbsBehaviorTree::findNodes(const QString &instance_name) |
| 30 | { |
| 31 | std::vector<const AbstractTreeNode*> out; |
| 32 | out.reserve( 4 ); |
| 33 | |
| 34 | for( const auto& node: _nodes) |
| 35 | { |
| 36 | if( node.instance_name == instance_name) |
| 37 | { |
| 38 | out.push_back( &node ); |
| 39 | } |
| 40 | } |
| 41 | return out; |
| 42 | } |
| 43 | |
| 44 | const AbstractTreeNode* AbsBehaviorTree::findFirstNode(const QString &instance_name) |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected