Apollo 10.0
自动驾驶开放平台
apollo::cyber::service_discovery::Vertice类 参考

#include <graph.h>

apollo::cyber::service_discovery::Vertice 的协作图:

Public 成员函数

 Vertice (const std::string &val="")
 
 Vertice (const Vertice &other)
 
virtual ~Vertice ()
 
Verticeoperator= (const Vertice &rhs)
 
bool operator== (const Vertice &rhs) const
 
bool operator!= (const Vertice &rhs) const
 
bool IsDummy () const
 
const std::string & GetKey () const
 
const std::string & value () const
 

详细描述

在文件 graph.h46 行定义.

构造及析构函数说明

◆ Vertice() [1/2]

apollo::cyber::service_discovery::Vertice::Vertice ( const std::string &  val = "")
explicit

在文件 graph.cc29 行定义.

29: value_(val) {}

◆ Vertice() [2/2]

apollo::cyber::service_discovery::Vertice::Vertice ( const Vertice other)

在文件 graph.cc31 行定义.

31{ this->value_ = other.value_; }

◆ ~Vertice()

apollo::cyber::service_discovery::Vertice::~Vertice ( )
virtual

在文件 graph.cc33 行定义.

33{}

成员函数说明

◆ GetKey()

const std::string & apollo::cyber::service_discovery::Vertice::GetKey ( ) const

在文件 graph.cc52 行定义.

52{ return value_; }

◆ IsDummy()

bool apollo::cyber::service_discovery::Vertice::IsDummy ( ) const

在文件 graph.cc50 行定义.

50{ return value_.empty(); }

◆ operator!=()

bool apollo::cyber::service_discovery::Vertice::operator!= ( const Vertice rhs) const

在文件 graph.cc46 行定义.

46 {
47 return this->value_ != rhs.value_;
48}

◆ operator=()

Vertice & apollo::cyber::service_discovery::Vertice::operator= ( const Vertice rhs)

在文件 graph.cc35 行定义.

35 {
36 if (this != &rhs) {
37 this->value_ = rhs.value_;
38 }
39 return *this;
40}

◆ operator==()

bool apollo::cyber::service_discovery::Vertice::operator== ( const Vertice rhs) const

在文件 graph.cc42 行定义.

42 {
43 return this->value_ == rhs.value_;
44}

◆ value()

const std::string & apollo::cyber::service_discovery::Vertice::value ( ) const
inline

在文件 graph.h59 行定义.

59{ return value_; }

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