LEFT | RIGHT |
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 INRIA | 3 * Copyright (c) 2005 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 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 * threaded and synchronize events to a realtime clock. | 68 * threaded and synchronize events to a realtime clock. |
69 * | 69 * |
70 * The simulator implementation can be set when the simulator is not· | 70 * The simulator implementation can be set when the simulator is not· |
71 * running. | 71 * running. |
72 */ | 72 */ |
73 static void SetImplementation (Ptr<SimulatorImpl> impl); | 73 static void SetImplementation (Ptr<SimulatorImpl> impl); |
74 | 74 |
75 static Ptr<SimulatorImpl> GetImplementation (void); | 75 static Ptr<SimulatorImpl> GetImplementation (void); |
76 | 76 |
77 /** | 77 /** |
78 * \param scheduler a new event scheduler | 78 * \param schedulerFactory a new event scheduler factory |
79 * | 79 * |
80 * The event scheduler can be set at any time: the events scheduled | 80 * The event scheduler can be set at any time: the events scheduled |
81 * in the previous scheduler will be transfered to the new scheduler | 81 * in the previous scheduler will be transfered to the new scheduler |
82 * before we start to use it. | 82 * before we start to use it. |
83 */ | 83 */ |
84 static void SetScheduler (ObjectFactory schedulerFactory); | 84 static void SetScheduler (ObjectFactory schedulerFactory); |
85 | 85 |
86 /** | 86 /** |
87 * Every event scheduled by the Simulator::insertAtDestroy method is | 87 * Every event scheduled by the Simulator::insertAtDestroy method is |
88 * invoked. Then, we ensure that any memory allocated by the· | 88 * invoked. Then, we ensure that any memory allocated by the· |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 typename T1, typename T2, typename T3, typename T4, typename T5> | 1139 typename T1, typename T2, typename T3, typename T4, typename T5> |
1140 EventId | 1140 EventId |
1141 Simulator::ScheduleDestroy (void (*f) (U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4
a4, T5 a5)· | 1141 Simulator::ScheduleDestroy (void (*f) (U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4
a4, T5 a5)· |
1142 { | 1142 { |
1143 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5)); | 1143 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5)); |
1144 } | 1144 } |
1145 | 1145 |
1146 } // namespace ns3 | 1146 } // namespace ns3 |
1147 | 1147 |
1148 #endif /* SIMULATOR_H */ | 1148 #endif /* SIMULATOR_H */ |
LEFT | RIGHT |