![]() |
Ember
|
Represents a blackboard containing multiple entries. More...
#include <BlackboardEntry.h>
Public Member Functions | |
| Blackboard ()=default | |
| Blackboard (const EmberCore::String &id) | |
| const EmberCore::String & | GetId () const |
| void | SetId (const EmberCore::String &id) |
| const EmberCore::String & | GetParentId () const |
| void | SetParentId (const EmberCore::String &parentId) |
| void | AddEntry (std::unique_ptr< BlackboardEntry > entry) |
| void | AddEntry (const EmberCore::String &key, BlackboardEntry::DataType type, const EmberCore::String &value="") |
| BlackboardEntry * | GetEntry (const EmberCore::String &key) |
| const BlackboardEntry * | GetEntry (const EmberCore::String &key) const |
| bool | HasEntry (const EmberCore::String &key) const |
| void | RemoveEntry (const EmberCore::String &key) |
| const std::map< EmberCore::String, std::unique_ptr< BlackboardEntry > > & | GetEntries () const |
| size_t | GetEntryCount () const |
| void | Clear () |
| std::unique_ptr< Blackboard > | Clone () const |
Private Attributes | |
| EmberCore::String | id_ |
| EmberCore::String | parent_id_ |
| std::map< EmberCore::String, std::unique_ptr< BlackboardEntry > > | entries_ |
Represents a blackboard containing multiple entries.
Blackboards can inherit from parent blackboards and contain multiple typed entries.
Definition at line 86 of file BlackboardEntry.h.
|
default |
|
explicit |
Definition at line 170 of file BlackboardEntry.cpp.
| void EmberCore::Blackboard::AddEntry | ( | const EmberCore::String & | key, |
| BlackboardEntry::DataType | type, | ||
| const EmberCore::String & | value = "" ) |
Definition at line 188 of file BlackboardEntry.cpp.
| void EmberCore::Blackboard::AddEntry | ( | std::unique_ptr< BlackboardEntry > | entry | ) |
Definition at line 172 of file BlackboardEntry.cpp.
| void EmberCore::Blackboard::Clear | ( | ) |
Definition at line 214 of file BlackboardEntry.cpp.
| std::unique_ptr< Blackboard > EmberCore::Blackboard::Clone | ( | ) | const |
Definition at line 219 of file BlackboardEntry.cpp.
|
inline |
Definition at line 109 of file BlackboardEntry.h.
| BlackboardEntry * EmberCore::Blackboard::GetEntry | ( | const EmberCore::String & | key | ) |
Definition at line 194 of file BlackboardEntry.cpp.
| const BlackboardEntry * EmberCore::Blackboard::GetEntry | ( | const EmberCore::String & | key | ) | const |
Definition at line 199 of file BlackboardEntry.cpp.
|
inline |
Definition at line 110 of file BlackboardEntry.h.
|
inline |
Definition at line 92 of file BlackboardEntry.h.
|
inline |
Definition at line 95 of file BlackboardEntry.h.
| bool EmberCore::Blackboard::HasEntry | ( | const EmberCore::String & | key | ) | const |
Definition at line 204 of file BlackboardEntry.cpp.
| void EmberCore::Blackboard::RemoveEntry | ( | const EmberCore::String & | key | ) |
Definition at line 206 of file BlackboardEntry.cpp.
|
inline |
Definition at line 93 of file BlackboardEntry.h.
|
inline |
Definition at line 96 of file BlackboardEntry.h.
|
private |
Definition at line 119 of file BlackboardEntry.h.
|
private |
Definition at line 117 of file BlackboardEntry.h.
|
private |
Definition at line 118 of file BlackboardEntry.h.