|
Apollo 11.0
自动驾驶开放平台
|
The memory pool for the data structure of BaseMapNode. 更多...
#include <lossy_map_pool_2d.h>
Public 成员函数 | |
| LossyMapNodePool2D (unsigned int pool_size, unsigned int thread_size) | |
| Constructor | |
| virtual | ~LossyMapNodePool2D () |
| Destructor | |
Public 成员函数 继承自 apollo::localization::msf::BaseMapNodePool | |
| BaseMapNodePool (unsigned int pool_size, unsigned int thread_size) | |
| Constructor | |
| virtual | ~BaseMapNodePool () |
| Destructor | |
| void | Initial (const BaseMapConfig *map_config, bool is_fixed_size=true) |
| Initialize the pool. | |
| void | Release () |
| Release the pool. | |
| BaseMapNode * | AllocMapNode () |
| Get a MapNode object from memory pool. | |
| void | FreeMapNode (BaseMapNode *map_node) |
| Release MapNode object to memory pool. | |
| unsigned int | GetPoolSize () |
| Get the size of pool. | |
额外继承的成员函数 | |
Protected 属性 继承自 apollo::localization::msf::BaseMapNodePool | |
| bool | is_fixed_size_ |
| The flag of pool auto expand. | |
| std::list< BaseMapNode * > | free_list_ |
| The list for free node. | |
| std::set< BaseMapNode * > | busy_nodes_ |
| The set for used node. | |
| unsigned int | pool_size_ |
| The size of memory pool. | |
| std::future< void > | node_reset_workers_ |
| The thread pool for release node. | |
| boost::mutex | mutex_ |
| The mutex for release thread. | |
| const BaseMapConfig * | map_config_ |
| The mutex for release thread. | |
The memory pool for the data structure of BaseMapNode.
在文件 lossy_map_pool_2d.h 第 30 行定义.
| apollo::localization::msf::LossyMapNodePool2D::LossyMapNodePool2D | ( | unsigned int | pool_size, |
| unsigned int | thread_size | ||
| ) |
Constructor
| <pool_size> | The memory pool size. |
| <thread_size> | The thread pool size. |
在文件 lossy_map_pool_2d.cc 第 23 行定义.
|
inlinevirtual |