equal
deleted
inserted
replaced
33 */ |
33 */ |
34 bool |
34 bool |
35 ns3::Scheduler::EventKeyCompare::operator () (struct EventKey a, struct EventKey b) |
35 ns3::Scheduler::EventKeyCompare::operator () (struct EventKey a, struct EventKey b) |
36 { |
36 { |
37 assert (a.m_uid != b.m_uid); |
37 assert (a.m_uid != b.m_uid); |
38 if (a.m_time < b.m_time) { |
38 if (a.m_ns < b.m_ns) { |
39 return true; |
39 return true; |
40 } else if (a.m_time == b.m_time && a.m_uid < b.m_uid) { |
40 } else if (a.m_ns == b.m_ns && a.m_uid < b.m_uid) { |
41 return true; |
41 return true; |
42 } else { |
42 } else { |
43 return false; |
43 return false; |
44 } |
44 } |
45 } |
45 } |