|
Apollo 10.0
自动驾驶开放平台
|
The memory pool for the data structure of BaseMapNode. 更多...
#include <ndt_map_pool.h>
Public 成员函数 | |
| NdtMapNodePool (unsigned int pool_size, unsigned int thread_size) | |
| Constructor | |
| virtual | ~NdtMapNodePool () |
| 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.
在文件 ndt_map_pool.h 第 29 行定义.
| apollo::localization::msf::NdtMapNodePool::NdtMapNodePool | ( | unsigned int | pool_size, |
| unsigned int | thread_size | ||
| ) |
Constructor
| <pool_size> | The memory pool size. |
| <thread_size> | The thread pool size. |
在文件 ndt_map_pool.cc 第 27 行定义.
|
inlinevirtual |