The Blackboard is the mechanism used by BehaviorTrees to exchange typed data.
More...
#include <blackboard.h>
The Blackboard is the mechanism used by BehaviorTrees to exchange typed data.
Definition at line 22 of file blackboard.h.
◆ Ptr
◆ Blackboard()
◆ ~Blackboard()
virtual BT::Blackboard::~Blackboard |
( |
| ) |
|
|
virtualdefault |
◆ addSubtreeRemapping()
◆ clear()
void BT::Blackboard::clear |
( |
| ) |
|
|
inline |
◆ create()
Use this static method to create an instance of the BlackBoard to share among all your NodeTrees.
Definition at line 36 of file blackboard.h.
◆ createEntry()
void BT::Blackboard::createEntry |
( |
const std::string & |
key, |
|
|
const PortInfo & |
info |
|
) |
| |
|
inline |
◆ createEntryImpl()
◆ debugMessage()
void BT::Blackboard::debugMessage |
( |
| ) |
const |
◆ enableAutoRemapping()
void BT::Blackboard::enableAutoRemapping |
( |
bool |
remapping | ) |
|
◆ entryMutex()
std::mutex& BT::Blackboard::entryMutex |
( |
| ) |
|
|
inline |
◆ get() [1/2]
template<typename T >
bool BT::Blackboard::get |
( |
const std::string & |
key, |
|
|
T & |
value |
|
) |
| const |
|
inline |
Return true if the entry with the given key was found. Note that this method may throw an exception if the cast to T failed.
Definition at line 81 of file blackboard.h.
◆ get() [2/2]
template<typename T >
T BT::Blackboard::get |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ getAny() [1/2]
const Any* BT::Blackboard::getAny |
( |
const std::string & |
key | ) |
const |
|
inline |
The method getAny allow the user to access directly the type erased value.
- Returns
- the pointer or nullptr if it fails.
Definition at line 51 of file blackboard.h.
◆ getAny() [2/2]
Any* BT::Blackboard::getAny |
( |
const std::string & |
key | ) |
|
|
inline |
◆ getKeys()
std::vector< StringView > BT::Blackboard::getKeys |
( |
| ) |
const |
◆ portInfo()
const PortInfo * BT::Blackboard::portInfo |
( |
const std::string & |
key | ) |
|
◆ set()
template<typename T >
void BT::Blackboard::set |
( |
const std::string & |
key, |
|
|
const T & |
value |
|
) |
| |
|
inline |
Update the entry with the given key.
Definition at line 110 of file blackboard.h.
◆ autoremapping_
bool BT::Blackboard::autoremapping_ = false |
|
private |
◆ entry_mutex_
std::mutex BT::Blackboard::entry_mutex_ |
|
mutableprivate |
◆ internal_to_external_
std::unordered_map<std::string, std::string> BT::Blackboard::internal_to_external_ |
|
private |
◆ mutex_
std::mutex BT::Blackboard::mutex_ |
|
mutableprivate |
◆ parent_bb_
std::weak_ptr<Blackboard> BT::Blackboard::parent_bb_ |
|
private |
◆ storage_
std::unordered_map<std::string, std::shared_ptr<Entry> > BT::Blackboard::storage_ |
|
private |
The documentation for this class was generated from the following files: