#include <container_manager.h>
◆ ContainerManager()
apollo::prediction::ContainerManager::ContainerManager |
( |
| ) |
|
|
default |
◆ CreateContainer()
Create a container
- 参数
-
- 返回
- Container pointer
在文件 container_manager.cc 第 45 行定义.
46 {
47 std::unique_ptr<Container> container_ptr(nullptr);
49 container_ptr.reset(new ObstaclesContainer());
51 container_ptr.reset(new PoseContainer());
53 container_ptr.reset(new ADCTrajectoryContainer());
55 container_ptr.reset(new StoryTellingContainer());
56 }
57 return container_ptr;
58}
◆ FRIEND_TEST() [1/2]
apollo::prediction::ContainerManager::FRIEND_TEST |
( |
FeatureExtractorTest |
, |
|
|
junction |
|
|
) |
| |
◆ FRIEND_TEST() [2/2]
apollo::prediction::ContainerManager::FRIEND_TEST |
( |
ScenarioManagerTest |
, |
|
|
run |
|
|
) |
| |
◆ GetContainer()
Get mutable container
- 参数
-
- 返回
- Pointer to the container given the name
在文件 container_manager.h 第 59 行定义.
59 {
60 auto key_type = static_cast<int>(type);
61 if (containers_.find(key_type) != containers_.end()) {
62 return static_cast<T *>(containers_[key_type].get());
63 }
64 return nullptr;
65 }
◆ Init()
该类的文档由以下文件生成: