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

Method createEntry

src/blackboard.cpp:164–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void Blackboard::createEntry(const std::string& key, const TypeInfo& info)
165{
166 if(StartWith(key, '@'))
167 {
168 if(key.find('@', 1) != std::string::npos)
169 {
170 throw LogicError("Character '@' used multiple times in the key");
171 }
172 rootBlackboard()->createEntryImpl(key.substr(1, key.size() - 1), info);
173 }
174 else
175 {
176 createEntryImpl(key, info);
177 }
178}
179
180void Blackboard::cloneInto(Blackboard& dst) const
181{

Callers 7

getLockedPortContentMethod · 0.80
createNodeFromXMLMethod · 0.80
ImportBlackboardFromJSONFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
tickMethod · 0.80
evaluateMethod · 0.80

Calls 4

StartWithFunction · 0.85
LogicErrorClass · 0.85
createEntryImplMethod · 0.80
sizeMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64