1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| class PacketListEntry {
public:
Packet *p;
double rxStartTime;
double rxEndTime;
double Pr;
int right_ths;
PacketListEntry(){
}
PacketListEntry(Packet *packet,double start,double end ,double pr,int ths):
p(packet),rxStartTime(start),rxEndTime(end),Pr(pr),right_ths(ths){
}
PacketListEntry(const PacketListEntry& PacketList)
:p(PacketList.p->Copy()),rxStartTime(PacketList.rxStartTime),Pr(PacketList.Pr),right_ths(PacketList.right_ths){
}
PacketListEntry& operator= (const PacketListEntry& p);
~PacketListEntry(){
delete p;
}
}; |