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

Method unset

include/behaviortree_cpp/blackboard.h:256–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256inline void Blackboard::unset(const std::string& key)
257{
258 std::unique_lock storage_lock(storage_mutex_);
259
260 // check local storage
261 auto it = storage_.find(key);
262 if(it == storage_.end())
263 {
264 // No entry, nothing to do.
265 return;
266 }
267
268 storage_.erase(it);
269}
270
271template <typename T>
272inline void Blackboard::set(const std::string& key, const T& value)

Callers 3

TESTFunction · 0.80
tickMethod · 0.80
fuzzSingleBBMethod · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TESTFunction · 0.64