#include <blackboard.h>
Public Types | |
| typedef std::shared_ptr < Blackboard > | Ptr |
Public Member Functions | |
| Blackboard () | |
| bool | contains (const std::string &key) const |
| template<typename T > | |
| bool | get (const std::string &key, T &value) const |
| template<typename T > | |
| T | get (const std::string &key) const |
| const SafeAny::Any * | getAny (const std::string &key) const |
| template<typename T > | |
| void | set (const std::string &key, const T &value) |
| Update the entry with the given key. | |
| virtual | ~Blackboard () |
Static Public Member Functions | |
| template<typename ImplClass , typename... Args> | |
| static Blackboard::Ptr | create (Args...args) |
Private Member Functions | |
| Blackboard (std::unique_ptr< BlackboardImpl > base) | |
Private Attributes | |
| std::unique_ptr< BlackboardImpl > | impl_ |
Definition at line 32 of file blackboard.h.
| typedef std::shared_ptr<Blackboard> BT::Blackboard::Ptr |
Definition at line 40 of file blackboard.h.
| BT::Blackboard::Blackboard | ( | std::unique_ptr< BlackboardImpl > | base | ) | [inline, private] |
Definition at line 35 of file blackboard.h.
| virtual BT::Blackboard::~Blackboard | ( | ) | [virtual] |
| bool BT::Blackboard::contains | ( | const std::string & | key | ) | const [inline] |
Definition at line 110 of file blackboard.h.
| static Blackboard::Ptr BT::Blackboard::create | ( | Args... | args | ) | [inline, static] |
Use this static method to create an instance of the BlackBoard to share among all your NodeTrees.
Definition at line 48 of file blackboard.h.
| 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.
return true if succesful
Definition at line 62 of file blackboard.h.
| T BT::Blackboard::get | ( | const std::string & | key | ) | const [inline] |
Definition at line 89 of file blackboard.h.
| const SafeAny::Any* BT::Blackboard::getAny | ( | const std::string & | key | ) | const [inline] |
Definition at line 78 of file blackboard.h.
| void BT::Blackboard::set | ( | const std::string & | key, |
| const T & | value | ||
| ) | [inline] |
Update the entry with the given key.
Definition at line 102 of file blackboard.h.
std::unique_ptr<BlackboardImpl> BT::Blackboard::impl_ [private] |
Definition at line 116 of file blackboard.h.