MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / SwitchNode

Method SwitchNode

include/behaviortree_cpp/controls/switch_node.h:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75template <size_t NUM_CASES>
76inline SwitchNode<NUM_CASES>::SwitchNode(const std::string& name,
77 const NodeConfig& config)
78 : ControlNode::ControlNode(name, config)
79{
80 setRegistrationID("Switch");
81 for(unsigned i = 1; i <= NUM_CASES; i++)
82 {
83 case_keys_.push_back(std::string("case_") + std::to_string(i));
84 }
85}
86
87template <size_t NUM_CASES>
88inline void SwitchNode<NUM_CASES>::halt()

Callers

nothing calls this directly

Calls 3

stringFunction · 0.85
push_backMethod · 0.80
to_stringFunction · 0.50

Tested by

no test coverage detected