src/simulator/scheduler.h
changeset 187 be0936ed7c63
parent 150 663120712cd9
child 194 882aa1fc50fd
equal deleted inserted replaced
186:a6a7a9ae74d9 187:be0936ed7c63
    69   bool IsEmpty (void) const;
    69   bool IsEmpty (void) const;
    70   EventImpl *PeekNext (void) const;
    70   EventImpl *PeekNext (void) const;
    71   Scheduler::EventKey PeekNextKey (void) const ;
    71   Scheduler::EventKey PeekNextKey (void) const ;
    72   void RemoveNext (void);
    72   void RemoveNext (void);
    73   EventImpl *Remove (EventId id, EventKey *key);
    73   EventImpl *Remove (EventId id, EventKey *key);
    74   bool IsValid (EventId id);
       
    75 
    74 
    76 private:
    75 private:
    77   /**
    76   /**
    78    * \param event event to store in the event list
    77    * \param event event to store in the event list
    79    * \param key timecode associated to this new event
    78    * \param key timecode associated to this new event
   111    *      takes ownership of the returned pointer.
   110    *      takes ownership of the returned pointer.
   112    *
   111    *
   113    * This methods cannot be invoked if the list is empty.
   112    * This methods cannot be invoked if the list is empty.
   114    */
   113    */
   115   virtual EventImpl *RealRemove (EventId id, EventKey *key) = 0;
   114   virtual EventImpl *RealRemove (EventId id, EventKey *key) = 0;
   116   /**
       
   117    * \param id event id to validate
       
   118    * \returns true if the event id identifies an existing valid
       
   119    *      event stored in the event list and false otherwise.
       
   120    */
       
   121   virtual bool RealIsValid (EventId id) = 0;
       
   122 };
   115 };
   123 
   116 
   124 }; // namespace ns3
   117 }; // namespace ns3
   125 
   118 
   126 
   119