Apollo 10.0
自动驾驶开放平台
apollo::routing::NodeWithRange类 参考

#include <node_with_range.h>

类 apollo::routing::NodeWithRange 继承关系图:
apollo::routing::NodeWithRange 的协作图:

Public 成员函数

 NodeWithRange (const NodeWithRange &other)=default
 
 NodeWithRange (const TopoNode *node, double start_s, double end_s)
 
 NodeWithRange (const TopoNode *node, const NodeSRange &range)
 
virtual ~NodeWithRange ()
 
bool operator< (const NodeWithRange &other) const
 
const TopoNodeGetTopoNode () const
 
bool IsVirtual () const
 
const std::string & RoadId () const
 
const std::string & LaneId () const
 
double FullLength () const
 
- Public 成员函数 继承自 apollo::routing::NodeSRange
 NodeSRange ()=default
 
 NodeSRange (double s1, double s2)
 
virtual ~NodeSRange ()=default
 
bool operator< (const NodeSRange &other) const
 
bool IsValid () const
 
double StartS () const
 
double EndS () const
 
bool IsEnoughForChangeLane () const
 
double Length () const
 
void SetStartS (double start_s)
 
void SetEndS (double end_s)
 
bool MergeRangeOverlap (const NodeSRange &other)
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 apollo::routing::NodeSRange
static bool IsEnoughForChangeLane (double start_s, double end_s)
 
static bool IsEnoughForChangeLane (double length)
 

详细描述

在文件 node_with_range.h26 行定义.

构造及析构函数说明

◆ NodeWithRange() [1/3]

apollo::routing::NodeWithRange::NodeWithRange ( const NodeWithRange other)
default

◆ NodeWithRange() [2/3]

apollo::routing::NodeWithRange::NodeWithRange ( const TopoNode node,
double  start_s,
double  end_s 
)

在文件 node_with_range.cc25 行定义.

26 : NodeSRange(start_s, end_s), topo_node_(node) {}

◆ NodeWithRange() [3/3]

apollo::routing::NodeWithRange::NodeWithRange ( const TopoNode node,
const NodeSRange range 
)

在文件 node_with_range.cc22 行定义.

23 : NodeSRange(range), topo_node_(node) {}

◆ ~NodeWithRange()

apollo::routing::NodeWithRange::~NodeWithRange ( )
virtual

在文件 node_with_range.cc28 行定义.

28{}

成员函数说明

◆ FullLength()

double apollo::routing::NodeWithRange::FullLength ( ) const

在文件 node_with_range.cc46 行定义.

46{ return topo_node_->Length(); }

◆ GetTopoNode()

const TopoNode * apollo::routing::NodeWithRange::GetTopoNode ( ) const

在文件 node_with_range.cc34 行定义.

34{ return topo_node_; }

◆ IsVirtual()

bool apollo::routing::NodeWithRange::IsVirtual ( ) const

在文件 node_with_range.cc36 行定义.

36{ return topo_node_->IsVirtual(); }

◆ LaneId()

const std::string & apollo::routing::NodeWithRange::LaneId ( ) const

在文件 node_with_range.cc42 行定义.

42 {
43 return topo_node_->LaneId();
44}
const std::string & LaneId() const
Definition topo_node.cc:162

◆ operator<()

bool apollo::routing::NodeWithRange::operator< ( const NodeWithRange other) const

在文件 node_with_range.cc30 行定义.

30 {
31 return StartS() > other.StartS();
32}

◆ RoadId()

const std::string & apollo::routing::NodeWithRange::RoadId ( ) const

在文件 node_with_range.cc38 行定义.

38 {
39 return topo_node_->RoadId();
40}
const std::string & RoadId() const
Definition topo_node.cc:164

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