32 for (
const auto& [k, v] : values)
76 o->OnValueRemoved(key);
87 o->OnValueChanged(key, value);
void NotifyKeyChanged(const std::string &key, const std::any &value) const
void Erase(const std::string &key)
Remove a map entry if present.
void Subscribe(BlackboardObserver *observer)
void Unsubscribe(BlackboardObserver *observer)
void Copy(const std::string &src, const std::string &dst)
Copy a blackboard value.
std::map< std::string, std::any > blackboard
void NotifyCleared() const
void NotifyKeyRemoved(const std::string &key) const
std::vector< BlackboardObserver * > observers
void Reset(const std::map< std::string, std::any > &values={})
Clear all the entries in the blackboard and load new ones.