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 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 * thread safe, by not modify overlapping model state. | 177 * thread safe, by not modify overlapping model state. |
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 /** Context enum values. */ | 187 /** |
188 enum { | 188 * Context enum values. |
| 189 * |
| 190 * \internal |
| 191 * This enum type is fixed to match the representation size |
| 192 * of simulation context. |
| 193 */ |
| 194 enum : uint32_t { |
189 /** | 195 /** |
190 * Flag for events not associated with any particular context. | 196 * Flag for events not associated with any particular context. |
191 */ | 197 */ |
192 NO_CONTEXT = 0xffffffff | 198 NO_CONTEXT = 0xffffffff |
193 }; | 199 }; |
194 ·· | 200 ·· |
195 /** | 201 /** |
196 * @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. |
197 */ | 203 */ |
198 /** @{ */ | 204 /** @{ */ |
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1768 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> |
1769 EventId | 1775 EventId |
1770 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) |
1771 { | 1777 { |
1772 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5, a6)); | 1778 return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5, a6)); |
1773 } | 1779 } |
1774 | 1780 |
1775 } // namespace ns3 | 1781 } // namespace ns3 |
1776 | 1782 |
1777 #endif /* SIMULATOR_H */ | 1783 #endif /* SIMULATOR_H */ |
OLD | NEW |