equal
deleted
inserted
replaced
1 /* -*- Mode:NS3; -*- */ |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* |
2 /* |
3 * Copyright (c) 2005,2006 INRIA |
3 * Copyright (c) 2005,2006 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 |
25 |
25 |
26 namespace ns3 { |
26 namespace ns3 { |
27 |
27 |
28 class EventImpl { |
28 class EventImpl { |
29 public: |
29 public: |
30 EventImpl (); |
30 EventImpl (); |
31 virtual ~EventImpl () = 0; |
31 virtual ~EventImpl () = 0; |
32 void Invoke (void); |
32 void Invoke (void); |
33 void Cancel (void); |
33 void Cancel (void); |
34 void SetInternalIterator (void *iterator); |
34 void SetInternalIterator (void *iterator); |
35 void *GetInternalIterator (void) const; |
35 void *GetInternalIterator (void) const; |
36 protected: |
36 protected: |
37 virtual void Notify (void) = 0; |
37 virtual void Notify (void) = 0; |
38 private: |
38 private: |
39 friend class Event; |
39 friend class Event; |
40 void *m_internalIterator; |
40 void *m_internalIterator; |
41 bool m_cancel; |
41 bool m_cancel; |
42 }; |
42 }; |
43 |
43 |
44 }; // namespace ns3 |
44 }; // namespace ns3 |
45 |
45 |
46 #endif /* EVENT_IMPL_H */ |
46 #endif /* EVENT_IMPL_H */ |