equal
deleted
inserted
replaced
35 public: |
35 public: |
36 SchedulerMap (); |
36 SchedulerMap (); |
37 virtual ~SchedulerMap (); |
37 virtual ~SchedulerMap (); |
38 |
38 |
39 private: |
39 private: |
40 virtual EventId RealInsert (EventImpl *event, Scheduler::EventKey key); |
40 virtual void RealInsert (EventId id); |
41 virtual bool RealIsEmpty (void) const; |
41 virtual bool RealIsEmpty (void) const; |
42 virtual EventImpl *RealPeekNext (void) const; |
42 virtual EventId RealPeekNext (void) const; |
43 virtual Scheduler::EventKey RealPeekNextKey (void) const; |
|
44 virtual void RealRemoveNext (void); |
43 virtual void RealRemoveNext (void); |
45 virtual EventImpl *RealRemove (EventId ev, Scheduler::EventKey *key); |
44 virtual bool RealRemove (EventId ev); |
46 virtual bool RealIsValid (EventId id); |
|
47 |
45 |
48 class EventKeyCompare { |
46 class EventKeyCompare { |
49 public: |
47 public: |
50 bool operator () (struct EventKey const&a, struct EventKey const&b); |
48 bool operator () (struct EventKey const&a, struct EventKey const&b); |
51 }; |
49 }; |
54 typedef std::map<Scheduler::EventKey, EventImpl*, SchedulerMap::EventKeyCompare>::iterator EventMapI; |
52 typedef std::map<Scheduler::EventKey, EventImpl*, SchedulerMap::EventKeyCompare>::iterator EventMapI; |
55 typedef std::map<Scheduler::EventKey, EventImpl*, SchedulerMap::EventKeyCompare>::const_iterator EventMapCI; |
53 typedef std::map<Scheduler::EventKey, EventImpl*, SchedulerMap::EventKeyCompare>::const_iterator EventMapCI; |
56 |
54 |
57 |
55 |
58 EventMap m_list; |
56 EventMap m_list; |
59 uint32_t m_uid; |
|
60 }; |
57 }; |
61 |
58 |
62 }; // namespace ns3 |
59 }; // namespace ns3 |
63 |
60 |
64 |
61 |