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

Function BlackboardRestore

src/bt_factory.cpp:758–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758void BlackboardRestore(const std::vector<Blackboard::Ptr>& backup, Tree& tree)
759{
760 assert(backup.size() == tree.subtrees.size());
761 for(size_t i = 0; i < tree.subtrees.size(); i++)
762 {
763 backup[i]->cloneInto(*(tree.subtrees[i]->blackboard));
764 }
765}
766
767std::vector<Blackboard::Ptr> BlackboardBackup(const Tree& tree)
768{

Callers 2

TESTFunction · 0.85
mainFunction · 0.85

Calls 2

cloneIntoMethod · 0.80
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68