Apollo 11.0
自动驾驶开放平台
apollo::cyber::event::SchedEvent类 参考

#include <perf_event.h>

类 apollo::cyber::event::SchedEvent 继承关系图:
apollo::cyber::event::SchedEvent 的协作图:

Public 成员函数

 SchedEvent ()
 
std::string SerializeToString () override
 
void set_cr_id (uint64_t cr_id) override
 
void set_cr_state (int cr_state) override
 
void set_proc_id (int proc_id) override
 
- Public 成员函数 继承自 apollo::cyber::event::EventBase
void set_eid (int eid)
 
void set_etype (int etype)
 
void set_stamp (uint64_t stamp)
 
virtual void set_fetch_res (int fetch_res)
 
virtual void set_msg_seq (uint64_t msg_seq)
 
virtual void set_channel_id (uint64_t channel_id)
 
virtual void set_adder (const std::string &adder)
 

额外继承的成员函数

- Protected 属性 继承自 apollo::cyber::event::EventBase
int etype_
 
int eid_
 
uint64_t stamp_
 

详细描述

在文件 perf_event.h 第 84 行定义.

构造及析构函数说明

◆ SchedEvent()

apollo::cyber::event::SchedEvent::SchedEvent ( )
inline

成员函数说明

◆ SerializeToString()

std::string apollo::cyber::event::SchedEvent::SerializeToString ( )
inlineoverridevirtual

实现了 apollo::cyber::event::EventBase.

在文件 perf_event.h 第 88 行定义.

88 {
89 std::stringstream ss;
90 ss << etype_ << "\t";
91 ss << eid_ << "\t";
92 ss << common::GlobalData::GetTaskNameById(cr_id_) << "\t";
93 ss << proc_id_ << "\t";
94 ss << cr_state_ << "\t";
95 ss << stamp_;
96 return ss.str();
97 }
static std::string GetTaskNameById(uint64_t id)

◆ set_cr_id()

void apollo::cyber::event::SchedEvent::set_cr_id ( uint64_t  cr_id)
inlineoverridevirtual

重载 apollo::cyber::event::EventBase .

在文件 perf_event.h 第 99 行定义.

99{ cr_id_ = cr_id; }

◆ set_cr_state()

void apollo::cyber::event::SchedEvent::set_cr_state ( int  cr_state)
inlineoverridevirtual

重载 apollo::cyber::event::EventBase .

在文件 perf_event.h 第 100 行定义.

100{ cr_state_ = cr_state; }

◆ set_proc_id()

void apollo::cyber::event::SchedEvent::set_proc_id ( int  proc_id)
inlineoverridevirtual

重载 apollo::cyber::event::EventBase .

在文件 perf_event.h 第 101 行定义.

101{ proc_id_ = proc_id; }

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