src/simulator/event-id.h
changeset 70 fcd8da09ef75
parent 54 f860e6f94787
child 110 9ac6d63bfe33
equal deleted inserted replaced
69:a56eda76b6fa 70:fcd8da09ef75
    25 
    25 
    26 namespace ns3 {
    26 namespace ns3 {
    27 
    27 
    28 class EventImpl;
    28 class EventImpl;
    29 
    29 
       
    30 /**
       
    31  * \brief an identifier for simulation events.
       
    32  */
    30 class EventId {
    33 class EventId {
    31 public:
    34 public:
    32     EventId ();
    35     EventId ();
    33     EventId (EventImpl *impl, uint64_t ns, uint32_t uid);
    36     EventId (EventImpl *impl, uint64_t ns, uint32_t uid);
       
    37 	/**
       
    38 	 * This method is syntactic sugar for the ns3::Simulator::cancel
       
    39 	 * method.
       
    40 	 */
    34     void cancel (void);
    41     void cancel (void);
       
    42 	/**
       
    43 	 * This method is syntactic sugar for the ns3::Simulator::isExpired
       
    44 	 * method.
       
    45 	 * \returns true if the event has expired, false otherwise.
       
    46 	 */
    35     bool isExpired (void);
    47     bool isExpired (void);
    36 public:
    48 public:
    37     /* The following methods are semi-private
    49     /* The following methods are semi-private
    38      * they are supposed to be invoked only by
    50      * they are supposed to be invoked only by
    39      * subclasses of the Scheduler base class.
    51      * subclasses of the Scheduler base class.