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

#include <role.h>

类 apollo::cyber::service_discovery::RoleServer 继承关系图:
apollo::cyber::service_discovery::RoleServer 的协作图:

Public 成员函数

 RoleServer ()
 
 RoleServer (const proto::RoleAttributes &attr, uint64_t timestamp_ns=0)
 
virtual ~RoleServer ()=default
 
bool Match (const proto::RoleAttributes &target_attr) const override
 
- Public 成员函数 继承自 apollo::cyber::service_discovery::RoleBase
 RoleBase ()
 
 RoleBase (const proto::RoleAttributes &attr, uint64_t timestamp_ns=0)
 
virtual ~RoleBase ()=default
 
bool IsEarlierThan (const RoleBase &other) const
 
const proto::RoleAttributesattributes () const
 
void set_attributes (const proto::RoleAttributes &attr)
 
uint64_t timestamp_ns () const
 
void set_timestamp_ns (uint64_t timestamp_ns)
 

额外继承的成员函数

- Protected 属性 继承自 apollo::cyber::service_discovery::RoleBase
proto::RoleAttributes attributes_
 
uint64_t timestamp_ns_
 

详细描述

在文件 role.h76 行定义.

构造及析构函数说明

◆ RoleServer() [1/2]

apollo::cyber::service_discovery::RoleServer::RoleServer ( )
inline

在文件 role.h78 行定义.

78{}

◆ RoleServer() [2/2]

apollo::cyber::service_discovery::RoleServer::RoleServer ( const proto::RoleAttributes attr,
uint64_t  timestamp_ns = 0 
)
explicit

在文件 role.cc71 行定义.

◆ ~RoleServer()

virtual apollo::cyber::service_discovery::RoleServer::~RoleServer ( )
virtualdefault

成员函数说明

◆ Match()

bool apollo::cyber::service_discovery::RoleServer::Match ( const proto::RoleAttributes target_attr) const
overridevirtual

重载 apollo::cyber::service_discovery::RoleBase .

在文件 role.cc74 行定义.

74 {
75 if (target_attr.has_service_id() &&
76 target_attr.service_id() != attributes_.service_id()) {
77 return false;
78 }
79
80 return RoleBase::Match(target_attr);
81}
virtual bool Match(const proto::RoleAttributes &target_attr) const
Definition role.cc:32
proto::RoleAttributes attributes_
Definition role.h:62

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