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

Function buildSerializedStatusSnapshot

src/behavior_tree.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void buildSerializedStatusSnapshot(const TreeNode* root_node,
101 SerializedTreeStatus& serialized_buffer)
102{
103 serialized_buffer.clear();
104
105 auto visitor = [&serialized_buffer](const TreeNode* node) {
106 serialized_buffer.push_back(
107 std::make_pair(node->UID(), static_cast<uint8_t>(node->status())));
108 };
109
110 applyRecursiveVisitor(root_node, visitor);
111}
112
113int LibraryVersionNumber()
114{

Callers 1

TESTFunction · 0.85

Calls 5

applyRecursiveVisitorFunction · 0.85
push_backMethod · 0.80
UIDMethod · 0.80
statusMethod · 0.80
clearMethod · 0.45

Tested by 1

TESTFunction · 0.68