equal
deleted
inserted
replaced
1 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ |
1 /* -*- Mode:C++; c-basic-offset:4; tab-width:4; indent-tabs-mode:f -*- */ |
2 /* |
2 /* |
3 * Copyright (c) 2005 INRIA |
3 * Copyright (c) 2005 INRIA |
4 * All rights reserved. |
4 * All rights reserved. |
5 * |
5 * |
6 * This program is free software; you can redistribute it and/or modify |
6 * This program is free software; you can redistribute it and/or modify |
27 |
27 |
28 class EventImpl; |
28 class EventImpl; |
29 |
29 |
30 class EventId { |
30 class EventId { |
31 public: |
31 public: |
32 EventId (); |
32 EventId (); |
33 EventId (EventImpl *impl, uint64_t ns, uint32_t uid); |
33 EventId (EventImpl *impl, uint64_t ns, uint32_t uid); |
34 void cancel (void); |
34 void cancel (void); |
35 bool isExpired (void); |
35 bool isExpired (void); |
36 public: |
36 public: |
37 /* The following methods are semi-private |
37 /* The following methods are semi-private |
38 * they are supposed to be invoked only by |
38 * they are supposed to be invoked only by |
39 * subclasses of the Scheduler base class. |
39 * subclasses of the Scheduler base class. |
40 */ |
40 */ |
41 EventImpl *getEventImpl (void) const; |
41 EventImpl *getEventImpl (void) const; |
42 uint64_t getNs (void) const; |
42 uint64_t getNs (void) const; |
43 uint32_t getUid (void) const; |
43 uint32_t getUid (void) const; |
44 private: |
44 private: |
45 EventImpl *m_eventImpl; |
45 EventImpl *m_eventImpl; |
46 uint64_t m_ns; |
46 uint64_t m_ns; |
47 uint32_t m_uid; |
47 uint32_t m_uid; |
48 }; |
48 }; |
49 |
49 |
50 }; // namespace ns3 |
50 }; // namespace ns3 |
51 |
51 |
52 #endif /* EVENT_ID_H */ |
52 #endif /* EVENT_ID_H */ |