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

Method getRawPortValue

src/tree_node.cpp:376–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376StringView TreeNode::getRawPortValue(const std::string& key) const
377{
378 auto remap_it = _p->config.input_ports.find(key);
379 if(remap_it == _p->config.input_ports.end())
380 {
381 remap_it = _p->config.output_ports.find(key);
382 if(remap_it == _p->config.output_ports.end())
383 {
384 throw std::logic_error(StrCat("[", key, "] not found"));
385 }
386 }
387 return remap_it->second;
388}
389
390bool TreeNode::isBlackboardPointer(StringView str, StringView* stripped_pointer)
391{

Callers

nothing calls this directly

Calls 2

StrCatFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected