DESERT 4.0.0
cool-addon-hdr.h
Go to the documentation of this file.
1#include <packet.h>
2
3#define HDR_COOLADDON(p) (hdr_cooladdon::access(p))
4
5extern packet_t PT_COOLADDON_THR;
6
7typedef struct hdr_cooladdon {
8 double throughput_;
10 static int offset_;
12 double &
14 {
15 return throughput_;
16 }
17
21 static int &
23 {
24 return offset_;
25 }
26
27 static struct hdr_cooladdon *
28 access(const Packet *p)
29 {
30 return (struct hdr_cooladdon *) p->access(offset_);
31 }
32
packet_t PT_COOLADDON_THR
Definition initlib.cpp:8
Definition cool-addon-hdr.h:7
static int & offset()
Definition cool-addon-hdr.h:22
double & throughput()
Definition cool-addon-hdr.h:13
double throughput_
Definition cool-addon-hdr.h:8
static int offset_
Definition cool-addon-hdr.h:10
static struct hdr_cooladdon * access(const Packet *p)
Definition cool-addon-hdr.h:28