#include <RoadInfoGeometry.h>
Public 成员函数 | |
void | AcceptVisitor (RoadInfoVisitor &v) final |
const Geometry & | GetGeometry () const |
RoadInfoGeometry (double s, std::unique_ptr< Geometry > &&geom) | |
![]() | |
double | GetDistance () const |
获取从道路起始位置的距离。 Distance from road's start location. | |
virtual | ~RoadInfo ()=default |
Private 属性 | |
const std::unique_ptr< const Geometry > | _geom |
额外继承的成员函数 | |
![]() | |
RoadInfo (double distance=0.0) | |
在文件 RoadInfoGeometry.h 第 17 行定义.
|
inline |
使用std::move将geom参数移动到成员变量_geom
使用DEBUG_ASSERT宏确保_geom不为nullptr,以避免空指针解引用
在文件 RoadInfoGeometry.h 第 20 行定义.
引用了 _geom , 以及 DEBUG_ASSERT.
|
inlinefinalvirtual |
|
inline |
|
private |
在文件 RoadInfoGeometry.h 第 36 行定义.
被这些函数引用 GetGeometry() , 以及 RoadInfoGeometry().