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

#include <endpoint.h>

类 apollo::cyber::transport::Endpoint 继承关系图:
apollo::cyber::transport::Endpoint 的协作图:

Public 成员函数

 Endpoint (const RoleAttributes &attr)
 
virtual ~Endpoint ()
 
const Identityid () const
 
const RoleAttributesattributes () const
 

Protected 属性

bool enabled_
 
Identity id_
 
RoleAttributes attr_
 

详细描述

在文件 endpoint.h36 行定义.

构造及析构函数说明

◆ Endpoint()

apollo::cyber::transport::Endpoint::Endpoint ( const RoleAttributes attr)
explicit

在文件 endpoint.cc25 行定义.

26 : enabled_(false), id_(), attr_(attr) {
27 if (!attr_.has_host_name()) {
28 attr_.set_host_name(common::GlobalData::Instance()->HostName());
29 }
30
31 if (!attr_.has_process_id()) {
32 attr_.set_process_id(common::GlobalData::Instance()->ProcessId());
33 }
34
35 if (!attr_.has_id()) {
36 attr_.set_id(id_.HashValue());
37 }
38}

◆ ~Endpoint()

apollo::cyber::transport::Endpoint::~Endpoint ( )
virtual

在文件 endpoint.cc40 行定义.

40{}

成员函数说明

◆ attributes()

const RoleAttributes & apollo::cyber::transport::Endpoint::attributes ( ) const
inline

在文件 endpoint.h42 行定义.

42{ return attr_; }

◆ id()

const Identity & apollo::cyber::transport::Endpoint::id ( ) const
inline

在文件 endpoint.h41 行定义.

41{ return id_; }

类成员变量说明

◆ attr_

RoleAttributes apollo::cyber::transport::Endpoint::attr_
protected

在文件 endpoint.h47 行定义.

◆ enabled_

bool apollo::cyber::transport::Endpoint::enabled_
protected

在文件 endpoint.h45 行定义.

◆ id_

Identity apollo::cyber::transport::Endpoint::id_
protected

在文件 endpoint.h46 行定义.


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