Apollo 10.0
自动驾驶开放平台
apollo::localization::msf::LossyMapNodePool2D类 参考

The memory pool for the data structure of BaseMapNode. 更多...

#include <lossy_map_pool_2d.h>

类 apollo::localization::msf::LossyMapNodePool2D 继承关系图:
apollo::localization::msf::LossyMapNodePool2D 的协作图:

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.
 
BaseMapNodeAllocMapNode ()
 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 BaseMapConfigmap_config_
 The mutex for release thread.
 

详细描述

The memory pool for the data structure of BaseMapNode.

在文件 lossy_map_pool_2d.h30 行定义.

构造及析构函数说明

◆ LossyMapNodePool2D()

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.cc23 行定义.

25 : BaseMapNodePool(pool_size, thread_size) {}
BaseMapNodePool(unsigned int pool_size, unsigned int thread_size)
Constructor

◆ ~LossyMapNodePool2D()

virtual apollo::localization::msf::LossyMapNodePool2D::~LossyMapNodePool2D ( )
inlinevirtual

Destructor

在文件 lossy_map_pool_2d.h38 行定义.

38{}

该类的文档由以下文件生成: