MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / findNodes

Method findNodes

bt_editor/bt_editor_base.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29std::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
44const AbstractTreeNode* AbsBehaviorTree::findFirstNode(const QString &instance_name)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected