Apollo 11.0
自动驾驶开放平台
apollo::perception::radar4d::MatchCost类 参考

#include <gnn_bipartite_graph_matcher.h>

apollo::perception::radar4d::MatchCost 的协作图:

Public 成员函数

 MatchCost (size_t ridx, size_t cidx, double cost)
 
size_t RowIdx () const
 Access RowIdx
 
size_t ColIdx () const
 Access ColIdx
 
double Cost () const
 Access Cost
 

友元

bool operator< (const MatchCost &m1, const MatchCost &m2)
 
std::ostream & operator<< (std::ostream &os, const MatchCost &m)
 

详细描述

在文件 gnn_bipartite_graph_matcher.h 第 28 行定义.

构造及析构函数说明

◆ MatchCost()

apollo::perception::radar4d::MatchCost::MatchCost ( size_t  ridx,
size_t  cidx,
double  cost 
)

在文件 gnn_bipartite_graph_matcher.cc 第 28 行定义.

29 : row_idx_(ridx), col_idx_(cidx), cost_(cost) {}

成员函数说明

◆ ColIdx()

size_t apollo::perception::radar4d::MatchCost::ColIdx ( ) const

Access ColIdx

返回
size_t

在文件 gnn_bipartite_graph_matcher.cc 第 33 行定义.

33{ return col_idx_; }

◆ Cost()

double apollo::perception::radar4d::MatchCost::Cost ( ) const

Access Cost

返回
double

在文件 gnn_bipartite_graph_matcher.cc 第 35 行定义.

35{ return cost_; }

◆ RowIdx()

size_t apollo::perception::radar4d::MatchCost::RowIdx ( ) const

Access RowIdx

返回
size_t

在文件 gnn_bipartite_graph_matcher.cc 第 31 行定义.

31{ return row_idx_; }

友元及相关函数文档

◆ operator<

bool operator< ( const MatchCost &  m1,
const MatchCost &  m2 
)
friend

在文件 gnn_bipartite_graph_matcher.cc 第 37 行定义.

37 {
38 return m1.cost_ < m2.cost_;
39}

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const MatchCost &  m 
)
friend

在文件 gnn_bipartite_graph_matcher.cc 第 41 行定义.

41 {
42 os << "MatchCost ridx:" << m.RowIdx() << " cidx:" << m.ColIdx()
43 << " Cost:" << m.Cost();
44 return os;
45}

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