LEFT | RIGHT |
(no file at all) | |
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) 2007 INRIA | 3 * Copyright (c) 2007 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 | 20 |
21 #ifndef TIMER_IMPL_H | 21 #ifndef TIMER_IMPL_H |
22 #define TIMER_IMPL_H | 22 #define TIMER_IMPL_H |
23 | 23 |
24 #include "simulator.h" | 24 #include "simulator.h" |
25 #include "type-traits.h" | 25 #include "type-traits.h" |
26 #include "fatal-error.h" | 26 #include "fatal-error.h" |
27 #include "int-to-type.h" | 27 #include "int-to-type.h" |
28 | 28 |
| 29 #include "ns3/ns3-module.h" |
| 30 #define NS3_MODULE NS3_CORE_MODULE |
| 31 #include "ns3/ns3-export.h" |
| 32 |
29 /** | 33 /** |
30 * \file | 34 * \file |
31 * \ingroup timer | 35 * \ingroup timer |
32 * \ingroup timerimpl | 36 * \ingroup timerimpl |
33 * ns3::TimerImpl declaration and implementation. | 37 * ns3::TimerImpl declaration and implementation. |
34 */ | 38 */ |
35 | 39 |
36 namespace ns3 { | 40 namespace ns3 { |
37 | 41 |
38 /** | 42 /** |
39 * \ingroup timer | 43 * \ingroup timer |
40 * The timer implementation underlying Timer and Watchdog. | 44 * The timer implementation underlying Timer and Watchdog. |
41 */ | 45 */ |
42 class TimerImpl | 46 class NS3_EXPORT TimerImpl |
43 { | 47 { |
44 public: | 48 public: |
45 /** Destructor. */ | 49 /** Destructor. */ |
46 virtual ~TimerImpl () | 50 virtual ~TimerImpl () |
47 { | 51 { |
48 } | 52 } |
49 | 53 |
50 /** | 54 /** |
51 * Set the arguments to be used when invoking the expire function. | 55 * Set the arguments to be used when invoking the expire function. |
52 */ | 56 */ |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 { | 1080 { |
1077 NS_FATAL_ERROR ("You tried to set Timer arguments incompatible with its fu
nction."); | 1081 NS_FATAL_ERROR ("You tried to set Timer arguments incompatible with its fu
nction."); |
1078 return; | 1082 return; |
1079 } | 1083 } |
1080 impl->SetArguments (a1, a2, a3, a4, a5, a6); | 1084 impl->SetArguments (a1, a2, a3, a4, a5, a6); |
1081 } | 1085 } |
1082 | 1086 |
1083 } // namespace ns3 | 1087 } // namespace ns3 |
1084 | 1088 |
1085 #endif /* TIMER_IMPL_H */ | 1089 #endif /* TIMER_IMPL_H */ |
LEFT | RIGHT |