|
Apollo 11.0
自动驾驶开放平台
|
#include <context.h>
Public 成员函数 | |
| Context ()=default | |
| ~Context ()=default | |
| template<typename T > | |
| void | Set (const std::string &key, const std::shared_ptr< T > &value) |
| Set value to context. | |
| template<typename T > | |
| void | Set (const std::string &key, const T &value) |
| Set value to context. | |
| template<typename T > | |
| std::shared_ptr< T > | Get (const std::string &key) const |
| Get value from context. | |
| template<typename T > | |
| void | SafeSet (const std::string &key, const std::shared_ptr< T > &value) |
| Set value to context safely. | |
| template<typename T > | |
| void | SafeSet (const std::string &key, const T &value) |
| Set value to context safely. | |
| template<typename T > | |
| std::shared_ptr< T > | SafeGet (const std::string &key) const |
| Get value from context safely. | |
|
default |
|
default |
| std::shared_ptr< T > apollo::cyber::context::Context::Get | ( | const std::string & | key | ) | const |
Get value from context.
| T | type of value |
| key | string key |
| std::shared_ptr< T > apollo::cyber::context::Context::SafeGet | ( | const std::string & | key | ) | const |
| void apollo::cyber::context::Context::SafeSet | ( | const std::string & | key, |
| const std::shared_ptr< T > & | value | ||
| ) |
Set value to context safely.
| T | type of value |
| key | string key |
| value | shared_ptr of T |
| void apollo::cyber::context::Context::SafeSet | ( | const std::string & | key, |
| const T & | value | ||
| ) |
| void apollo::cyber::context::Context::Set | ( | const std::string & | key, |
| const std::shared_ptr< T > & | value | ||
| ) |
| void apollo::cyber::context::Context::Set | ( | const std::string & | key, |
| const T & | value | ||
| ) |