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

#include <ndt_map_matrix_handler.h>

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

Public 成员函数

 NdtMapMatrixHandler ()
 
virtual ~NdtMapMatrixHandler ()
 
size_t LoadBinary (const unsigned char *buf, std::shared_ptr< BaseMapMatrix > matrix)
 Load the map cell from a binary chunk.
 
size_t CreateBinary (const std::shared_ptr< BaseMapMatrix > matrix, unsigned char *buf, size_t buf_size)
 Create the binary.
 
size_t GetBinarySize (const std::shared_ptr< BaseMapMatrix > matrix)
 Get the binary size of the object.
 
- Public 成员函数 继承自 apollo::localization::msf::pyramid_map::BaseMapMatrixHandler
 BaseMapMatrixHandler ()
 
virtual ~BaseMapMatrixHandler ()
 

详细描述

在文件 ndt_map_matrix_handler.h35 行定义.

构造及析构函数说明

◆ NdtMapMatrixHandler()

apollo::localization::msf::pyramid_map::NdtMapMatrixHandler::NdtMapMatrixHandler ( )

在文件 ndt_map_matrix_handler.cc33 行定义.

33{}

◆ ~NdtMapMatrixHandler()

apollo::localization::msf::pyramid_map::NdtMapMatrixHandler::~NdtMapMatrixHandler ( )
virtual

在文件 ndt_map_matrix_handler.cc34 行定义.

34{}

成员函数说明

◆ CreateBinary()

size_t apollo::localization::msf::pyramid_map::NdtMapMatrixHandler::CreateBinary ( const std::shared_ptr< BaseMapMatrix matrix,
unsigned char *  buf,
size_t  buf_size 
)
virtual

Create the binary.

Serialization of the object.

参数
<buf,buf_size>The buffer and its size.
<return>The required or the used size of is returned.

实现了 apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.

在文件 ndt_map_matrix_handler.cc50 行定义.

52 {
53 if (!matrix) {
54 return 0;
55 }
56 const std::shared_ptr<NdtMapMatrix> ndt_matrix =
57 std::dynamic_pointer_cast<NdtMapMatrix>(matrix);
58 return ndt_matrix->CreateBinary(buf, buf_size);
59}

◆ GetBinarySize()

size_t apollo::localization::msf::pyramid_map::NdtMapMatrixHandler::GetBinarySize ( const std::shared_ptr< BaseMapMatrix matrix)
virtual

Get the binary size of the object.

实现了 apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.

在文件 ndt_map_matrix_handler.cc61 行定义.

62 {
63 const std::shared_ptr<NdtMapMatrix> ndt_matrix =
64 std::dynamic_pointer_cast<NdtMapMatrix>(matrix);
65 return ndt_matrix->GetBinarySize();
66}

◆ LoadBinary()

size_t apollo::localization::msf::pyramid_map::NdtMapMatrixHandler::LoadBinary ( const unsigned char *  buf,
std::shared_ptr< BaseMapMatrix matrix 
)
virtual

Load the map cell from a binary chunk.

参数
<return>The size read (the real size of object).

实现了 apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.

在文件 ndt_map_matrix_handler.cc36 行定义.

37 {
38 if (!matrix) {
39 return 0;
40 }
41 std::shared_ptr<NdtMapMatrix> ndt_matrix =
42 std::dynamic_pointer_cast<NdtMapMatrix>(matrix);
43 size_t size = ndt_matrix->LoadBinary(buf);
44 return size;
45}

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