Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
behaviortree_cpp
blackboard
blackboard_local.h
Go to the documentation of this file.
1
#ifndef BLACKBOARD_LOCAL_H
2
#define BLACKBOARD_LOCAL_H
3
4
#include "
blackboard.h
"
5
6
namespace
BT
7
{
8
class
BlackboardLocal
:
public
BlackboardImpl
9
{
10
public
:
11
BlackboardLocal
()
12
{
13
}
14
15
virtual
const
SafeAny::Any
*
get
(
const
std::string& key)
const
override
16
{
17
auto
it =
storage_
.find(key);
18
if
(it ==
storage_
.end())
19
{
20
return
nullptr
;
21
}
22
return
&(it->second);
23
}
24
25
virtual
void
set
(
const
std::string& key,
const
SafeAny::Any
& value)
override
26
{
27
storage_
[key] = value;
28
}
29
30
virtual
bool
contains
(
const
std::string& key)
const override
31
{
32
return
storage_
.find(key) !=
storage_
.end();
33
}
34
35
private
:
36
std::unordered_map<std::string, SafeAny::Any>
storage_
;
37
};
38
}
39
40
#endif // BLACKBOARD_LOCAL_H
BT::BlackboardLocal::contains
virtual bool contains(const std::string &key) const override
Definition:
blackboard_local.h:30
BT::BlackboardLocal::BlackboardLocal
BlackboardLocal()
Definition:
blackboard_local.h:11
BT
Definition:
t06_wrap_legacy.cpp:43
BT::BlackboardLocal
Definition:
blackboard_local.h:8
BT::BlackboardLocal::storage_
std::unordered_map< std::string, SafeAny::Any > storage_
Definition:
blackboard_local.h:36
blackboard.h
BT::BlackboardImpl
Definition:
blackboard.h:18
SafeAny::Any
Definition:
safe_any.hpp:19
behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 04:01:53