equal
deleted
inserted
replaced
18 * |
18 * |
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
20 */ |
20 */ |
21 |
21 |
22 #include "scheduler.h" |
22 #include "scheduler.h" |
23 #include <cassert> |
23 #include "ns3/assert.h" |
24 |
24 |
25 namespace ns3 { |
25 namespace ns3 { |
26 |
26 |
27 Scheduler::~Scheduler () |
27 Scheduler::~Scheduler () |
28 {} |
28 {} |
38 return RealIsEmpty (); |
38 return RealIsEmpty (); |
39 } |
39 } |
40 EventImpl * |
40 EventImpl * |
41 Scheduler::PeekNext (void) const |
41 Scheduler::PeekNext (void) const |
42 { |
42 { |
43 assert (!RealIsEmpty ()); |
43 NS_ASSERT (!RealIsEmpty ()); |
44 return RealPeekNext (); |
44 return RealPeekNext (); |
45 } |
45 } |
46 Scheduler::EventKey |
46 Scheduler::EventKey |
47 Scheduler::PeekNextKey (void) const |
47 Scheduler::PeekNextKey (void) const |
48 { |
48 { |
49 assert (!RealIsEmpty ()); |
49 NS_ASSERT (!RealIsEmpty ()); |
50 return RealPeekNextKey (); |
50 return RealPeekNextKey (); |
51 } |
51 } |
52 void |
52 void |
53 Scheduler::RemoveNext (void) |
53 Scheduler::RemoveNext (void) |
54 { |
54 { |
55 assert (!RealIsEmpty ()); |
55 NS_ASSERT (!RealIsEmpty ()); |
56 return RealRemoveNext (); |
56 return RealRemoveNext (); |
57 } |
57 } |
58 EventImpl * |
58 EventImpl * |
59 Scheduler::Remove (EventId id, EventKey *key) |
59 Scheduler::Remove (EventId id, EventKey *key) |
60 { |
60 { |
61 assert (!RealIsEmpty ()); |
61 NS_ASSERT (!RealIsEmpty ()); |
62 return RealRemove (id, key); |
62 return RealRemove (id, key); |
63 } |
63 } |
64 |
64 |
65 }; // namespace ns3 |
65 }; // namespace ns3 |