File tree Expand file tree Collapse file tree
metrics/packet_reordering Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66namespace sim {
77class SimplePacketReordering : public IPacketReordering {
88public:
9- explicit SimplePacketReordering (std::size_t a_max_packets = 1'000'000 );
9+ explicit SimplePacketReordering (std::size_t a_max_packets = 512 );
1010 ~SimplePacketReordering () = default ;
1111
1212 void add_record (PacketNum packet_num) final ;
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ namespace sim {
77// Base class for event
88class Event {
99public:
10- Event (TimeNs a_time);
10+ explicit inline Event (TimeNs a_time) : m_time(a_time) {}
1111 virtual ~Event () = default ;
1212 virtual void operator ()() = 0;
1313
14- TimeNs get_time () const ;
15- bool operator >(const Event &other) const ;
14+ inline TimeNs get_time () const { return m_time; }
15+ inline bool operator >(const Event &other) const {
16+ return m_time > other.m_time ;
17+ }
1618
1719protected:
1820 const TimeNs m_time;
You can’t perform that action at this time.
0 commit comments