OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 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 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 */ | 19 */ |
20 #ifndef EVENT_IMPL_H | 20 #ifndef EVENT_IMPL_H |
21 #define EVENT_IMPL_H | 21 #define EVENT_IMPL_H |
22 | 22 |
23 #include <stdint.h> | 23 #include <stdint.h> |
24 #include "simple-ref-count.h" | 24 #include "simple-ref-count.h" |
25 | 25 |
| 26 #include "ns3/ns3-module.h" |
| 27 #define NS3_MODULE NS3_CORE_MODULE |
| 28 #include "ns3/ns3-export.h" |
| 29 |
26 /** | 30 /** |
27 * \file | 31 * \file |
28 * \ingroup events | 32 * \ingroup events |
29 * ns3::EventImpl declarations. | 33 * ns3::EventImpl declarations. |
30 */ | 34 */ |
31 | 35 |
32 namespace ns3 { | 36 namespace ns3 { |
33 | 37 |
34 /** | 38 /** |
35 * \ingroup events | 39 * \ingroup events |
36 * \brief A simulation event. | 40 * \brief A simulation event. |
37 * | 41 * |
38 * Each subclass of this base class represents a simulation event. The | 42 * Each subclass of this base class represents a simulation event. The |
39 * Invoke() method will be called by the simulation engine | 43 * Invoke() method will be called by the simulation engine |
40 * when it reaches the time associated to this event. Most subclasses | 44 * when it reaches the time associated to this event. Most subclasses |
41 * are usually created by one of the many Simulator::Schedule | 45 * are usually created by one of the many Simulator::Schedule |
42 * methods. | 46 * methods. |
43 */ | 47 */ |
44 class EventImpl : public SimpleRefCount<EventImpl> | 48 class NS3_EXPORT EventImpl : public SimpleRefCount<EventImpl> |
45 { | 49 { |
46 public: | 50 public: |
47 /** Default constructor. */ | 51 /** Default constructor. */ |
48 EventImpl (); | 52 EventImpl (); |
49 /** Destructor. */ | 53 /** Destructor. */ |
50 virtual ~EventImpl () = 0; | 54 virtual ~EventImpl () = 0; |
51 /** | 55 /** |
52 * Called by the simulation engine to notify the event that it is time | 56 * Called by the simulation engine to notify the event that it is time |
53 * to execute. | 57 * to execute. |
54 */ | 58 */ |
(...skipping 20 matching lines...) Expand all Loading... |
75 */ | 79 */ |
76 virtual void Notify (void) = 0; | 80 virtual void Notify (void) = 0; |
77 | 81 |
78 private: | 82 private: |
79 bool m_cancel; /**< Has this event been cancelled. */ | 83 bool m_cancel; /**< Has this event been cancelled. */ |
80 }; | 84 }; |
81 | 85 |
82 } // namespace ns3 | 86 } // namespace ns3 |
83 | 87 |
84 #endif /* EVENT_IMPL_H */ | 88 #endif /* EVENT_IMPL_H */ |
OLD | NEW |