代码拉取完成,页面将自动刷新
同步操作将从 Hic/popnet_modified 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef SIM_FLIT_H_
#define SIM_FLIT_H_
#include "index.h"
#include "SStd.h"
#include <vector>
#include <iostream>
#include <vector>
//数据包,用于整个网络传递,从发送方到接收方
//最大尺寸是预设的,若超过要分片传输
class flit_template
{
public:
//changed at 2022-9-22
//增加了数据包id
typedef long TFlitId;
typedef size_t TPacketId;
friend ostream& operator<<(ostream& os, const flit_template & ft);
private:
TFlitId flit_id_;
flit_type type_;
add_type sor_addr_;
add_type des_addr_;
time_type start_time_;
time_type finish_time_;
Data_type data_;
TPacketId packet_id;
public:
TFlitId flit_id() {return flit_id_;}
TFlitId flit_id() const {return flit_id_;}
flit_type type() {return type_;}
flit_type type() const {return type_;}
add_type & sor_addr() {return sor_addr_;}
const add_type & sor_addr() const {return sor_addr_;}
add_type & des_addr() {return des_addr_;}
const add_type & des_addr() const {return des_addr_;}
time_type start_time() {return start_time_;}
time_type start_time() const {return start_time_;}
time_type finish_time() {return finish_time_;}
time_type finish_time() const {return finish_time_;}
void set_start(time_type a) {start_time_ = a;}
void set_finish(time_type a) {finish_time_ = a;}
Data_type & data() {return data_;}
const Data_type & data() const {return data_;}
TPacketId getPacketId()const
{
return packet_id;
}
flit_template();
flit_template(long a, flit_type b, add_type & c, add_type & d,
time_type e, const Data_type & f,TPacketId packetId);
flit_template(const flit_template & a);
};
//changed at 2020-5-9
bool isHeader(flit_type ft);
bool isTail(flit_type ft);
//changed at 2020-5-23
ostream&operator<<(ostream&os,const add_type&address);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。