Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::localization::msf::LossyMapNodePool2D Class Reference

The memory pool for the data structure of BaseMapNode. More...

#include <lossy_map_pool_2d.h>

Inheritance diagram for apollo::localization::msf::LossyMapNodePool2D:
Inheritance graph
Collaboration diagram for apollo::localization::msf::LossyMapNodePool2D:
Collaboration graph

Public Member Functions

 LossyMapNodePool2D (unsigned int pool_size, unsigned int thread_size)
 Constructor. More...
 
virtual ~LossyMapNodePool2D ()
 Destructor. More...
 
- Public Member Functions inherited from apollo::localization::msf::BaseMapNodePool
 BaseMapNodePool (unsigned int pool_size, unsigned int thread_size)
 Constructor. More...
 
virtual ~BaseMapNodePool ()
 Destructor. More...
 
void Initial (const BaseMapConfig *map_config, bool is_fixed_size=true)
 Initialize the pool. More...
 
void Release ()
 Release the pool. More...
 
BaseMapNodeAllocMapNode ()
 Get a MapNode object from memory pool. More...
 
void FreeMapNode (BaseMapNode *map_node)
 Release MapNode object to memory pool. More...
 
unsigned int GetPoolSize ()
 Get the size of pool. More...
 

Additional Inherited Members

- Protected Attributes inherited from apollo::localization::msf::BaseMapNodePool
bool is_fixed_size_
 The flag of pool auto expand. More...
 
std::list< BaseMapNode * > free_list_
 The list for free node. More...
 
std::set< BaseMapNode * > busy_nodes_
 The set for used node. More...
 
unsigned int pool_size_
 The size of memory pool. More...
 
std::future< void > node_reset_workers_
 The thread pool for release node. More...
 
boost::mutex mutex_
 The mutex for release thread. More...
 
const BaseMapConfigmap_config_
 The mutex for release thread. More...
 

Detailed Description

The memory pool for the data structure of BaseMapNode.

Constructor & Destructor Documentation

◆ LossyMapNodePool2D()

apollo::localization::msf::LossyMapNodePool2D::LossyMapNodePool2D ( unsigned int  pool_size,
unsigned int  thread_size 
)

Constructor.

Parameters
<pool_size>The memory pool size.
<thread_size>The thread pool size.

◆ ~LossyMapNodePool2D()

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

Destructor.


The documentation for this class was generated from the following file: