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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 * | 178 * |
179 * In circumstances where the context can't be determined, such as | 179 * In circumstances where the context can't be determined, such as |
180 * during object initialization, the \c enum value \c NO_CONTEXT | 180 * during object initialization, the \c enum value \c NO_CONTEXT |
181 * should be used. | 181 * should be used. |
182 * | 182 * |
183 * @return The current simulation context | 183 * @return The current simulation context |
184 */ | 184 */ |
185 static uint32_t GetContext (void); | 185 static uint32_t GetContext (void); |
186 | 186 |
187 /** | 187 /** |
188 * Context enum values. | 188 * Context enum values. |
189 * | 189 * |
190 * \internal | 190 * \internal |
191 * This enum type is fixed to match the representation size | 191 * This enum type is fixed to match the representation size |
192 * of simulation context. | 192 * of simulation context. |
193 */ | 193 */ |
194 enum : uint32_t { | 194 enum : uint32_t { |
195 /** | 195 /** |
196 * Flag for events not associated with any particular context. | 196 * Flag for events not associated with any particular context. |
197 */ | 197 */ |
198 NO_CONTEXT = 0xffffffff | 198 NO_CONTEXT = 0xffffffff |
199 }; | 199 }; |
200 ·· | 200 ·· |
201 /** | 201 /** |
202 * @name Schedule events (in the same context) to run at a future time. | 202 * @name Schedule events (in the same context) to run at a future time. |
203 */ | 203 */ |
204 /** @{ */ | 204 /** @{ */ |
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 typename T1, typename T2, typename T3, typename T4, typename T5, typen
ame T6> | 1774 typename T1, typename T2, typename T3, typename T4, typename T5, typen
ame T6> |
1775 EventId | 1775 EventId |
1776 Simulator::ScheduleDestroy (void (*f)(U1,U2,U3,U4,U5,U6), T1 a1, T2 a2, T3 a3, T
4 a4, T5 a5, T6 a6) | 1776 Simulator::ScheduleDestroy (void (*f)(U1,U2,U3,U4,U5,U6), T1 a1, T2 a2, T3 a3, T
4 a4, T5 a5, T6 a6) |
1777 { | 1777 { |
1778 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5, a6)); | 1778 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5, a6)); |
1779 } | 1779 } |
1780 | 1780 |
1781 } // namespace ns3 | 1781 } // namespace ns3 |
1782 | 1782 |
1783 #endif /* SIMULATOR_H */ | 1783 #endif /* SIMULATOR_H */ |
LEFT | RIGHT |