|
207 |
* |
207 |
* |
208 |
* @tparam MEM @deduced Class method function signature type. |
208 |
* @tparam MEM @deduced Class method function signature type. |
209 |
* @tparam OBJ @deduced Class type of the object. |
209 |
* @tparam OBJ @deduced Class type of the object. |
|
|
210 |
* @tparam Ts @deduced Argument types. |
210 |
* @param [in] delay The relative expiration time of the event. |
211 |
* @param [in] delay The relative expiration time of the event. |
211 |
* @param [in] mem_ptr Member method pointer to invoke |
212 |
* @param [in] mem_ptr Member method pointer to invoke |
212 |
* @param [in] obj The object on which to invoke the member method |
213 |
* @param [in] obj The object on which to invoke the member method |
|
|
214 |
* @param [in] args Arguments to pass to the invoked method |
213 |
* @returns The id for the scheduled event. |
215 |
* @returns The id for the scheduled event. |
214 |
*/ |
216 |
*/ |
215 |
template <typename MEM, typename OBJ> |
217 |
template <typename MEM, typename OBJ, typename... Ts> |
216 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj); |
218 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, Ts... args); |
217 |
|
219 |
|
218 |
/** |
220 |
/** |
219 |
* @see Schedule(const Time&,MEM,OBJ) |
|
|
220 |
* @tparam MEM @deduced Class method function signature type. |
221 |
* @tparam OBJ @deduced Class type of the object. |
222 |
* @tparam T1 @deduced Type of first argument. |
223 |
* @param [in] delay The relative expiration time of the event. |
224 |
* @param [in] mem_ptr Member method pointer to invoke |
225 |
* @param [in] obj The object on which to invoke the member method |
226 |
* @param [in] a1 The first argument to pass to the invoked method |
227 |
* @returns The id for the scheduled event. |
228 |
*/ |
229 |
template <typename MEM, typename OBJ, typename T1> |
230 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1); |
231 |
|
232 |
/** |
233 |
* @see Schedule(const Time&,MEM,OBJ) |
234 |
* @tparam MEM @deduced Class method function signature type. |
235 |
* @tparam OBJ @deduced Class type of the object. |
236 |
* @tparam T1 @deduced Type of first argument. |
237 |
* @tparam T2 @deduced Type of second argument. |
238 |
* @param [in] delay The relative expiration time of the event. |
239 |
* @param [in] mem_ptr Member method pointer to invoke |
240 |
* @param [in] obj The object on which to invoke the member method |
241 |
* @param [in] a1 The first argument to pass to the invoked method |
242 |
* @param [in] a2 The second argument to pass to the invoked method |
243 |
* @returns The id for the scheduled event. |
244 |
*/ |
245 |
template <typename MEM, typename OBJ, typename T1, typename T2> |
246 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2); |
247 |
|
248 |
/** |
249 |
* @see Schedule(const Time&,MEM,OBJ) |
250 |
* @tparam MEM @deduced Class method function signature type. |
251 |
* @tparam OBJ @deduced Class type of the object. |
252 |
* @tparam T1 @deduced Type of first argument. |
253 |
* @tparam T2 @deduced Type of second argument. |
254 |
* @tparam T3 @deduced Type of third argument. |
255 |
* @param [in] delay The relative expiration time of the event. |
256 |
* @param [in] mem_ptr Member method pointer to invoke |
257 |
* @param [in] obj The object on which to invoke the member method |
258 |
* @param [in] a1 The first argument to pass to the invoked method |
259 |
* @param [in] a2 The second argument to pass to the invoked method |
260 |
* @param [in] a3 The third argument to pass to the invoked method |
261 |
* @returns The id for the scheduled event. |
262 |
*/ |
263 |
template <typename MEM, typename OBJ, |
264 |
typename T1, typename T2, typename T3> |
265 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3); |
266 |
|
267 |
/** |
268 |
* @see Schedule(const Time&,MEM,OBJ) |
269 |
* @tparam MEM @deduced Class method function signature type. |
270 |
* @tparam OBJ @deduced Class type of the object. |
271 |
* @tparam T1 @deduced Type of first argument. |
272 |
* @tparam T2 @deduced Type of second argument. |
273 |
* @tparam T3 @deduced Type of third argument. |
274 |
* @tparam T4 @deduced Type of fourth argument. |
275 |
* @param [in] delay The relative expiration time of the event. |
276 |
* @param [in] mem_ptr Member method pointer to invoke |
277 |
* @param [in] obj The object on which to invoke the member method |
278 |
* @param [in] a1 The first argument to pass to the invoked method |
279 |
* @param [in] a2 The second argument to pass to the invoked method |
280 |
* @param [in] a3 The third argument to pass to the invoked method |
281 |
* @param [in] a4 The fourth argument to pass to the invoked method |
282 |
* @returns The id for the scheduled event. |
283 |
*/ |
284 |
template <typename MEM, typename OBJ, |
285 |
typename T1, typename T2, typename T3, typename T4> |
286 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4); |
287 |
|
288 |
/** |
289 |
* @see Schedule(const Time&,MEM,OBJ) |
290 |
* @tparam MEM @deduced Class method function signature type. |
291 |
* @tparam OBJ @deduced Class type of the object. |
292 |
* @tparam T1 @deduced Type of first argument. |
293 |
* @tparam T2 @deduced Type of second argument. |
294 |
* @tparam T3 @deduced Type of third argument. |
295 |
* @tparam T4 @deduced Type of fourth argument. |
296 |
* @tparam T5 @deduced Type of fifth argument. |
297 |
* @param [in] delay The relative expiration time of the event. |
298 |
* @param [in] mem_ptr Member method pointer to invoke |
299 |
* @param [in] obj The object on which to invoke the member method |
300 |
* @param [in] a1 The first argument to pass to the invoked method |
301 |
* @param [in] a2 The second argument to pass to the invoked method |
302 |
* @param [in] a3 The third argument to pass to the invoked method |
303 |
* @param [in] a4 The fourth argument to pass to the invoked method |
304 |
* @param [in] a5 The fifth argument to pass to the invoked method |
305 |
* @returns The id for the scheduled event. |
306 |
*/ |
307 |
template <typename MEM, typename OBJ, |
308 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
309 |
static EventId Schedule (Time const &delay, MEM mem_ptr, OBJ obj, |
310 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
311 |
/** |
312 |
* Schedule an event to expire after @p delay. |
221 |
* Schedule an event to expire after @p delay. |
313 |
* This can be thought of as scheduling an event |
222 |
* This can be thought of as scheduling an event |
314 |
* for the current simulation time plus the @p delay passed as a |
223 |
* for the current simulation time plus the @p delay passed as a |
|
316 |
* |
225 |
* |
317 |
* When the event expires (when it becomes due to be run), the |
226 |
* When the event expires (when it becomes due to be run), the |
318 |
* function will be invoked with any supplied arguments. |
227 |
* function will be invoked with any supplied arguments. |
319 |
* @param [in] delay The relative expiration time of the event. |
228 |
* @tparam Us @deduced Formal type of the function arguments. |
320 |
* @param [in] f The function to invoke |
229 |
* @tparam Ts @deduced Actual type of the function arguments. |
321 |
* @returns The id for the scheduled event. |
|
|
322 |
*/ |
323 |
static EventId Schedule (Time const &delay, void (*f)(void)); |
324 |
|
325 |
/** |
326 |
* @see Schedule(const Time&,(*)()) |
327 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
328 |
* @tparam T1 @deduced Actual type of the first argument. |
329 |
* @param [in] delay The relative expiration time of the event. |
230 |
* @param [in] delay The relative expiration time of the event. |
330 |
* @param [in] f The function to invoke |
231 |
* @param [in] f The function to invoke |
331 |
* @param [in] a1 The first argument to pass to the function to invoke. |
232 |
* @param [in] a1 The first argument to pass to the function to invoke. |
332 |
* @returns The id for the scheduled event. |
233 |
* @returns The id for the scheduled event. |
333 |
*/ |
234 |
*/ |
334 |
template <typename U1, typename T1> |
235 |
template <typename... Us, typename... Ts> |
335 |
static EventId Schedule (Time const &delay, void (*f)(U1), T1 a1); |
236 |
static EventId Schedule (Time const &delay, void (*f)(Us...), Ts... args); |
336 |
|
|
|
337 |
/** |
338 |
* @see Schedule(const Time&,(*)()) |
339 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
340 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
341 |
* @tparam T1 @deduced Actual type of the first argument. |
342 |
* @tparam T2 @deduced Actual type of the second argument. |
343 |
* @param [in] delay The relative expiration time of the event. |
344 |
* @param [in] f The function to invoke |
345 |
* @param [in] a1 The first argument to pass to the function to invoke |
346 |
* @param [in] a2 The second argument to pass to the function to invoke |
347 |
* @returns The id for the scheduled event. |
348 |
*/ |
349 |
template <typename U1, typename U2, |
350 |
typename T1, typename T2> |
351 |
static EventId Schedule (Time const &delay, void (*f)(U1,U2), T1 a1, T2 a2); |
352 |
|
353 |
/** |
354 |
* @see Schedule(const Time&,void(*)()) |
355 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
356 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
357 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
358 |
* @tparam T1 @deduced Actual type of the first argument. |
359 |
* @tparam T2 @deduced Actual type of the second argument. |
360 |
* @tparam T3 @deduced Actual type of the third argument. |
361 |
* @param [in] delay The relative expiration time of the event. |
362 |
* @param [in] f The function to invoke |
363 |
* @param [in] a1 The first argument to pass to the function to invoke |
364 |
* @param [in] a2 The second argument to pass to the function to invoke |
365 |
* @param [in] a3 The third argument to pass to the function to invoke |
366 |
* @returns The id for the scheduled event. |
367 |
*/ |
368 |
template <typename U1, typename U2, typename U3, |
369 |
typename T1, typename T2, typename T3> |
370 |
static EventId Schedule (Time const &delay, void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3); |
371 |
|
372 |
/** |
373 |
* @see Schedule(const Time&,(*)(void)) |
374 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
375 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
376 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
377 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
378 |
* @tparam T1 @deduced Actual type of the first argument. |
379 |
* @tparam T2 @deduced Actual type of the second argument. |
380 |
* @tparam T3 @deduced Actual type of the third argument. |
381 |
* @tparam T4 @deduced Actual type of the fourth argument. |
382 |
* @param [in] delay The relative expiration time of the event. |
383 |
* @param [in] f The function to invoke |
384 |
* @param [in] a1 The first argument to pass to the function to invoke |
385 |
* @param [in] a2 The second argument to pass to the function to invoke |
386 |
* @param [in] a3 The third argument to pass to the function to invoke |
387 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
388 |
* @returns The id for the scheduled event. |
389 |
*/ |
390 |
template <typename U1, typename U2, typename U3, typename U4, |
391 |
typename T1, typename T2, typename T3, typename T4> |
392 |
static EventId Schedule (Time const &delay, void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4); |
393 |
|
394 |
/** |
395 |
* @see Schedule(const Time&,void(*)(void)) |
396 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
397 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
398 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
399 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
400 |
* @tparam U5 @deduced Formal type of the fifth argument to the function. |
401 |
* @tparam T1 @deduced Actual type of the first argument. |
402 |
* @tparam T2 @deduced Actual type of the second argument. |
403 |
* @tparam T3 @deduced Actual type of the third argument. |
404 |
* @tparam T4 @deduced Actual type of the fourth argument. |
405 |
* @tparam T5 @deduced Actual type of the fifth argument. |
406 |
* @param [in] delay The relative expiration time of the event. |
407 |
* @param [in] f The function to invoke |
408 |
* @param [in] a1 The first argument to pass to the function to invoke |
409 |
* @param [in] a2 The second argument to pass to the function to invoke |
410 |
* @param [in] a3 The third argument to pass to the function to invoke |
411 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
412 |
* @param [in] a5 The fifth argument to pass to the function to invoke |
413 |
* @returns The id for the scheduled event. |
414 |
*/ |
415 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
416 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
417 |
static EventId Schedule (Time const &delay, void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
418 |
|
419 |
/** @} */ |
237 |
/** @} */ |
420 |
|
238 |
|
421 |
/** |
239 |
/** |
|
432 |
* @see Schedule(const Time&,MEM,OBJ) |
250 |
* @see Schedule(const Time&,MEM,OBJ) |
433 |
* @tparam MEM @deduced Class method function signature type. |
251 |
* @tparam MEM @deduced Class method function signature type. |
434 |
* @tparam OBJ @deduced Class type of the object. |
252 |
* @tparam OBJ @deduced Class type of the object. |
435 |
* @param [in] context User-specified context parameter |
253 |
* @tparam Ts @deduced Argument types. |
436 |
* @param [in] delay The relative expiration time of the event. |
|
|
437 |
* @param [in] mem_ptr Member method pointer to invoke |
438 |
* @param [in] obj The object on which to invoke the member method |
439 |
*/ |
440 |
template <typename MEM, typename OBJ> |
441 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj); |
442 |
|
443 |
/** |
444 |
* @see ScheduleWithContext(uint32_t,const Time&,MEM,OBJ) |
445 |
* @tparam MEM @deduced Class method function signature type. |
446 |
* @tparam OBJ @deduced Class type of the object. |
447 |
* @tparam T1 @deduced Type of first argument. |
448 |
* @param [in] context User-specified context parameter |
254 |
* @param [in] context User-specified context parameter |
449 |
* @param [in] delay The relative expiration time of the event. |
255 |
* @param [in] delay The relative expiration time of the event. |
450 |
* @param [in] mem_ptr Member method pointer to invoke |
256 |
* @param [in] mem_ptr Member method pointer to invoke |
451 |
* @param [in] obj The object on which to invoke the member method |
257 |
* @param [in] obj The object on which to invoke the member method |
452 |
* @param [in] a1 The first argument to pass to the invoked method |
258 |
* @param [in] a1 The first argument to pass to the invoked method |
453 |
*/ |
259 |
*/ |
454 |
template <typename MEM, typename OBJ, typename T1> |
260 |
template <typename MEM, typename OBJ, typename... Ts> |
455 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1); |
261 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, Ts... args); |
456 |
|
262 |
|
457 |
/** |
263 |
/** |
458 |
* @see ScheduleWithContext(uint32_t,const Time&,MEM,OBJ) |
|
|
459 |
* @tparam MEM @deduced Class method function signature type. |
460 |
* @tparam OBJ @deduced Class type of the object. |
461 |
* @tparam T1 @deduced Type of first argument. |
462 |
* @tparam T2 @deduced Type of second argument. |
463 |
* @param [in] context User-specified context parameter |
464 |
* @param [in] delay The relative expiration time of the event. |
465 |
* @param [in] mem_ptr Member method pointer to invoke |
466 |
* @param [in] obj The object on which to invoke the member method |
467 |
* @param [in] a1 The first argument to pass to the invoked method |
468 |
* @param [in] a2 The second argument to pass to the invoked method |
469 |
*/ |
470 |
template <typename MEM, typename OBJ, typename T1, typename T2> |
471 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2); |
472 |
|
473 |
/** |
474 |
* @see ScheduleWithContext(uint32_t,const Time&,MEM,OBJ) |
475 |
* @tparam MEM @deduced Class method function signature type. |
476 |
* @tparam OBJ @deduced Class type of the object. |
477 |
* @tparam T1 @deduced Type of first argument. |
478 |
* @tparam T2 @deduced Type of second argument. |
479 |
* @tparam T3 @deduced Type of third argument. |
480 |
* @param [in] context User-specified context parameter |
481 |
* @param [in] delay The relative expiration time of the event. |
482 |
* @param [in] mem_ptr Member method pointer to invoke |
483 |
* @param [in] obj The object on which to invoke the member method |
484 |
* @param [in] a1 The first argument to pass to the invoked method |
485 |
* @param [in] a2 The second argument to pass to the invoked method |
486 |
* @param [in] a3 The third argument to pass to the invoked method |
487 |
*/ |
488 |
template <typename MEM, typename OBJ, |
489 |
typename T1, typename T2, typename T3> |
490 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3); |
491 |
|
492 |
/** |
493 |
* @see ScheduleWithContext(uint32_t,const Time&,MEM,OBJ) |
494 |
* @tparam MEM @deduced Class method function signature type. |
495 |
* @tparam OBJ @deduced Class type of the object. |
496 |
* @tparam T1 @deduced Type of first argument. |
497 |
* @tparam T2 @deduced Type of second argument. |
498 |
* @tparam T3 @deduced Type of third argument. |
499 |
* @tparam T4 @deduced Type of fourth argument. |
500 |
* @param [in] context User-specified context parameter |
501 |
* @param [in] delay The relative expiration time of the event. |
502 |
* @param [in] mem_ptr Member method pointer to invoke |
503 |
* @param [in] obj The object on which to invoke the member method |
504 |
* @param [in] a1 The first argument to pass to the invoked method |
505 |
* @param [in] a2 The second argument to pass to the invoked method |
506 |
* @param [in] a3 The third argument to pass to the invoked method |
507 |
* @param [in] a4 The fourth argument to pass to the invoked method |
508 |
*/ |
509 |
template <typename MEM, typename OBJ, |
510 |
typename T1, typename T2, typename T3, typename T4> |
511 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4); |
512 |
|
513 |
/** |
514 |
* @see ScheduleWithContext(uint32_t,const Time&,MEM,OBJ) |
515 |
* @tparam MEM @deduced Class method function signature type. |
516 |
* @tparam OBJ @deduced Class type of the object. |
517 |
* @tparam T1 @deduced Type of first argument. |
518 |
* @tparam T2 @deduced Type of second argument. |
519 |
* @tparam T3 @deduced Type of third argument. |
520 |
* @tparam T4 @deduced Type of fourth argument. |
521 |
* @tparam T5 @deduced Type of fifth argument. |
522 |
* @param [in] context User-specified context parameter |
523 |
* @param [in] delay The relative expiration time of the event. |
524 |
* @param [in] mem_ptr Member method pointer to invoke |
525 |
* @param [in] obj The object on which to invoke the member method |
526 |
* @param [in] a1 The first argument to pass to the invoked method |
527 |
* @param [in] a2 The second argument to pass to the invoked method |
528 |
* @param [in] a3 The third argument to pass to the invoked method |
529 |
* @param [in] a4 The fourth argument to pass to the invoked method |
530 |
* @param [in] a5 The fifth argument to pass to the invoked method |
531 |
*/ |
532 |
template <typename MEM, typename OBJ, |
533 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
534 |
static void ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, |
535 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
536 |
/** |
537 |
* Schedule an event with the given context. |
264 |
* Schedule an event with the given context. |
538 |
* A context of 0xffffffff means no context is specified. |
265 |
* A context of 0xffffffff means no context is specified. |
539 |
* This method is thread-safe: it can be called from any thread. |
266 |
* This method is thread-safe: it can be called from any thread. |
|
542 |
* function will be invoked with any supplied arguments. |
269 |
* function will be invoked with any supplied arguments. |
543 |
* |
270 |
* |
544 |
* This method is thread-safe: it can be called from any thread. |
271 |
* This method is thread-safe: it can be called from any thread. |
545 |
* @param [in] context User-specified context parameter |
272 |
* @tparam Us @deduced Formal type of the function arguments. |
546 |
* @param [in] delay The relative expiration time of the event. |
273 |
* @tparam Ts @deduced Actual type of the function arguments. |
547 |
* @param [in] f The function to invoke |
|
|
548 |
*/ |
549 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(void)); |
550 |
|
551 |
/** |
552 |
* @see ScheduleWithContext(uint32_t,const Time&,(*)()) |
553 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
554 |
* @tparam T1 @deduced Actual type of the first argument. |
555 |
* @param [in] context User-specified context parameter |
274 |
* @param [in] context User-specified context parameter |
556 |
* @param [in] delay The relative expiration time of the event. |
275 |
* @param [in] delay The relative expiration time of the event. |
557 |
* @param [in] f The function to invoke |
276 |
* @param [in] f The function to invoke |
558 |
* @param [in] a1 The first argument to pass to the function to invoke |
277 |
* @param [in] a1 The first argument to pass to the function to invoke |
559 |
*/ |
278 |
*/ |
560 |
template <typename U1, |
279 |
template <typename... Us, typename... Ts> |
561 |
typename T1> |
280 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(Us...), Ts... args); |
562 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1), T1 a1); |
|
|
563 |
|
564 |
/** |
565 |
* @see ScheduleWithContext(uint32_t,const Time&,(*)()) |
566 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
567 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
568 |
* @tparam T1 @deduced Actual type of the first argument. |
569 |
* @tparam T2 @deduced Actual type of the second argument. |
570 |
* @param [in] context User-specified context parameter |
571 |
* @param [in] delay The relative expiration time of the event. |
572 |
* @param [in] f The function to invoke |
573 |
* @param [in] a1 The first argument to pass to the function to invoke |
574 |
* @param [in] a2 The second argument to pass to the function to invoke |
575 |
*/ |
576 |
template <typename U1, typename U2, |
577 |
typename T1, typename T2> |
578 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2), T1 a1, T2 a2); |
579 |
|
580 |
/** |
581 |
* @see ScheduleWithContext(uint32_t,const Time&,(*)()) |
582 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
583 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
584 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
585 |
* @tparam T1 @deduced Actual type of the first argument. |
586 |
* @tparam T2 @deduced Actual type of the second argument. |
587 |
* @tparam T3 @deduced Actual type of the third argument. |
588 |
* @param [in] context User-specified context parameter |
589 |
* @param [in] delay The relative expiration time of the event. |
590 |
* @param [in] f The function to invoke |
591 |
* @param [in] a1 The first argument to pass to the function to invoke |
592 |
* @param [in] a2 The second argument to pass to the function to invoke |
593 |
* @param [in] a3 The third argument to pass to the function to invoke |
594 |
*/ |
595 |
template <typename U1, typename U2, typename U3, |
596 |
typename T1, typename T2, typename T3> |
597 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3); |
598 |
|
599 |
/** |
600 |
* @see ScheduleWithContext(uint32_t,const Time&,(*)()) |
601 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
602 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
603 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
604 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
605 |
* @tparam T1 @deduced Actual type of the first argument. |
606 |
* @tparam T2 @deduced Actual type of the second argument. |
607 |
* @tparam T3 @deduced Actual type of the third argument. |
608 |
* @tparam T4 @deduced Actual type of the fourth argument. |
609 |
* @param [in] context User-specified context parameter |
610 |
* @param [in] delay The relative expiration time of the event. |
611 |
* @param [in] f The function to invoke |
612 |
* @param [in] a1 The first argument to pass to the function to invoke |
613 |
* @param [in] a2 The second argument to pass to the function to invoke |
614 |
* @param [in] a3 The third argument to pass to the function to invoke |
615 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
616 |
*/ |
617 |
template <typename U1, typename U2, typename U3, typename U4, |
618 |
typename T1, typename T2, typename T3, typename T4> |
619 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4); |
620 |
|
621 |
/** |
622 |
* @see ScheduleWithContext(uint32_t,const Time&,(*)()) |
623 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
624 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
625 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
626 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
627 |
* @tparam U5 @deduced Formal type of the fifth argument to the function. |
628 |
* @tparam T1 @deduced Actual type of the first argument. |
629 |
* @tparam T2 @deduced Actual type of the second argument. |
630 |
* @tparam T3 @deduced Actual type of the third argument. |
631 |
* @tparam T4 @deduced Actual type of the fourth argument. |
632 |
* @tparam T5 @deduced Actual type of the fifth argument. |
633 |
* @param [in] context User-specified context parameter |
634 |
* @param [in] delay The relative expiration time of the event. |
635 |
* @param [in] f The function to invoke |
636 |
* @param [in] a1 The first argument to pass to the function to invoke |
637 |
* @param [in] a2 The second argument to pass to the function to invoke |
638 |
* @param [in] a3 The third argument to pass to the function to invoke |
639 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
640 |
* @param [in] a5 The fifth argument to pass to the function to invoke |
641 |
*/ |
642 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
643 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
644 |
static void ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
645 |
|
281 |
|
646 |
/** @} */ |
282 |
/** @} */ |
647 |
|
283 |
|
648 |
/** |
284 |
/** |
649 |
* @name Schedule events (in the same context) to run now. |
285 |
* @name Schedule events (in the same context) to run now. |
650 |
*/ |
286 |
*/ |
|
656 |
* |
292 |
* |
657 |
* @tparam MEM @deduced Class method function signature type. |
293 |
* @tparam MEM @deduced Class method function signature type. |
658 |
* @tparam OBJ @deduced Class type of the object. |
294 |
* @tparam OBJ @deduced Class type of the object. |
|
|
295 |
* @tparam T1 @deduced Argument types. |
659 |
* @param [in] mem_ptr Member method pointer to invoke |
296 |
* @param [in] mem_ptr Member method pointer to invoke |
660 |
* @param [in] obj The object on which to invoke the member method |
297 |
* @param [in] obj The object on which to invoke the member method |
|
|
298 |
* @param [in] args Arguments to pass to the invoked method |
661 |
* @return The EventId of the scheduled event. |
299 |
* @return The EventId of the scheduled event. |
662 |
*/ |
300 |
*/ |
663 |
template <typename MEM, typename OBJ> |
301 |
template <typename MEM, typename OBJ, typename... Ts> |
664 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj); |
302 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, Ts... args); |
665 |
|
303 |
|
666 |
/** |
304 |
/** |
667 |
* @see ScheduleNow(MEM,OBJ) |
|
|
668 |
* @tparam MEM @deduced Class method function signature type. |
669 |
* @tparam OBJ @deduced Class type of the object. |
670 |
* @tparam T1 @deduced Type of first argument. |
671 |
* @param [in] mem_ptr Member method pointer to invoke |
672 |
* @param [in] obj The object on which to invoke the member method |
673 |
* @param [in] a1 The first argument to pass to the invoked method |
674 |
* @return The EventId of the scheduled event. |
675 |
*/ |
676 |
template <typename MEM, typename OBJ, |
677 |
typename T1> |
678 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1); |
679 |
|
680 |
/** |
681 |
* @see ScheduleNow(MEM,OBJ) |
682 |
* @tparam MEM @deduced Class method function signature type. |
683 |
* @tparam OBJ @deduced Class type of the object. |
684 |
* @tparam T1 @deduced Type of first argument. |
685 |
* @tparam T2 @deduced Type of second argument. |
686 |
* @param [in] mem_ptr Member method pointer to invoke |
687 |
* @param [in] obj The object on which to invoke the member method |
688 |
* @param [in] a1 The first argument to pass to the invoked method |
689 |
* @param [in] a2 The second argument to pass to the invoked method |
690 |
* @return The EventId of the scheduled event. |
691 |
*/ |
692 |
template <typename MEM, typename OBJ, |
693 |
typename T1, typename T2> |
694 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1, T2 a2); |
695 |
|
696 |
/** |
697 |
* @see ScheduleNow(MEM,OBJ) |
698 |
* @tparam MEM @deduced Class method function signature type. |
699 |
* @tparam OBJ @deduced Class type of the object. |
700 |
* @tparam T1 @deduced Type of first argument. |
701 |
* @tparam T2 @deduced Type of second argument. |
702 |
* @tparam T3 @deduced Type of third argument. |
703 |
* @param [in] mem_ptr Member method pointer to invoke |
704 |
* @param [in] obj The object on which to invoke the member method |
705 |
* @param [in] a1 The first argument to pass to the invoked method |
706 |
* @param [in] a2 The second argument to pass to the invoked method |
707 |
* @param [in] a3 The third argument to pass to the invoked method |
708 |
* @return The EventId of the scheduled event. |
709 |
*/ |
710 |
template <typename MEM, typename OBJ, |
711 |
typename T1, typename T2, typename T3> |
712 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3); |
713 |
|
714 |
/** |
715 |
* @see ScheduleNow(MEM,OBJ) |
716 |
* @tparam MEM @deduced Class method function signature type. |
717 |
* @tparam OBJ @deduced Class type of the object. |
718 |
* @tparam T1 @deduced Type of first argument. |
719 |
* @tparam T2 @deduced Type of second argument. |
720 |
* @tparam T3 @deduced Type of third argument. |
721 |
* @tparam T4 @deduced Type of fourth argument. |
722 |
* @param [in] mem_ptr Member method pointer to invoke |
723 |
* @param [in] obj The object on which to invoke the member method |
724 |
* @param [in] a1 The first argument to pass to the invoked method |
725 |
* @param [in] a2 The second argument to pass to the invoked method |
726 |
* @param [in] a3 The third argument to pass to the invoked method |
727 |
* @param [in] a4 The fourth argument to pass to the invoked method |
728 |
* @return The EventId of the scheduled event. |
729 |
*/ |
730 |
template <typename MEM, typename OBJ, |
731 |
typename T1, typename T2, typename T3, typename T4> |
732 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, |
733 |
T1 a1, T2 a2, T3 a3, T4 a4); |
734 |
/** |
735 |
* @see ScheduleNow(MEM,OBJ) |
736 |
* @tparam MEM @deduced Class method function signature type. |
737 |
* @tparam OBJ @deduced Class type of the object. |
738 |
* @tparam T1 @deduced Type of first argument. |
739 |
* @tparam T2 @deduced Type of second argument. |
740 |
* @tparam T3 @deduced Type of third argument. |
741 |
* @tparam T4 @deduced Type of fourth argument. |
742 |
* @tparam T5 @deduced Type of fifth argument. |
743 |
* @param [in] mem_ptr Member method pointer to invoke |
744 |
* @param [in] obj The object on which to invoke the member method |
745 |
* @param [in] a1 The first argument to pass to the invoked method |
746 |
* @param [in] a2 The second argument to pass to the invoked method |
747 |
* @param [in] a3 The third argument to pass to the invoked method |
748 |
* @param [in] a4 The fourth argument to pass to the invoked method |
749 |
* @param [in] a5 The fifth argument to pass to the invoked method |
750 |
* @return The EventId of the scheduled event. |
751 |
*/ |
752 |
template <typename MEM, typename OBJ, |
753 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
754 |
static EventId ScheduleNow (MEM mem_ptr, OBJ obj, |
755 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
756 |
/** |
757 |
* @copybrief ScheduleNow(MEM,OBJ) |
305 |
* @copybrief ScheduleNow(MEM,OBJ) |
758 |
* |
306 |
* |
759 |
* When the event expires (when it becomes due to be run), the |
307 |
* When the event expires (when it becomes due to be run), the |
760 |
* function will be invoked with any supplied arguments. |
308 |
* function will be invoked with any supplied arguments. |
|
|
309 |
* @tparam Us @deduced Formal type of the function arguments. |
310 |
* @tparam Ts @deduced Actual type of the function arguments. |
761 |
* @param [in] f The function to invoke |
311 |
* @param [in] f The function to invoke |
|
|
312 |
* @param [in] args Arguments to pass to the function to invoke |
762 |
* @return The EventId of the scheduled event. |
313 |
* @return The EventId of the scheduled event. |
763 |
*/ |
314 |
*/ |
764 |
static EventId ScheduleNow (void (*f)(void)); |
315 |
template <typename... Us, typename... Ts> |
765 |
|
316 |
static EventId ScheduleNow (void (*f)(Us...), Ts... args); |
766 |
/** |
|
|
767 |
* @see ScheduleNow(*) |
768 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
769 |
* @tparam T1 @deduced Actual type of the first argument. |
770 |
* @param [in] f The function to invoke |
771 |
* @param [in] a1 The first argument to pass to the function to invoke |
772 |
* @return The EventId of the scheduled event. |
773 |
*/ |
774 |
template <typename U1, |
775 |
typename T1> |
776 |
static EventId ScheduleNow (void (*f)(U1), T1 a1); |
777 |
|
778 |
/** |
779 |
* @see ScheduleNow(*) |
780 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
781 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
782 |
* @tparam T1 @deduced Actual type of the first argument. |
783 |
* @tparam T2 @deduced Actual type of the second argument. |
784 |
* @param [in] f The function to invoke |
785 |
* @param [in] a1 The first argument to pass to the function to invoke |
786 |
* @param [in] a2 The second argument to pass to the function to invoke |
787 |
* @return The EventId of the scheduled event. |
788 |
*/ |
789 |
template <typename U1, typename U2, |
790 |
typename T1, typename T2> |
791 |
static EventId ScheduleNow (void (*f)(U1,U2), T1 a1, T2 a2); |
792 |
|
793 |
/** |
794 |
* @see ScheduleNow(*) |
795 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
796 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
797 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
798 |
* @tparam T1 @deduced Actual type of the first argument. |
799 |
* @tparam T2 @deduced Actual type of the second argument. |
800 |
* @tparam T3 @deduced Actual type of the third argument. |
801 |
* @param [in] f The function to invoke |
802 |
* @param [in] a1 The first argument to pass to the function to invoke |
803 |
* @param [in] a2 The second argument to pass to the function to invoke |
804 |
* @param [in] a3 The third argument to pass to the function to invoke |
805 |
* @return The EventId of the scheduled event. |
806 |
*/ |
807 |
template <typename U1, typename U2, typename U3, |
808 |
typename T1, typename T2, typename T3> |
809 |
static EventId ScheduleNow (void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3); |
810 |
|
811 |
/** |
812 |
* @see ScheduleNow(*) |
813 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
814 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
815 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
816 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
817 |
* @tparam T1 @deduced Actual type of the first argument. |
818 |
* @tparam T2 @deduced Actual type of the second argument. |
819 |
* @tparam T3 @deduced Actual type of the third argument. |
820 |
* @tparam T4 @deduced Actual type of the fourth argument. |
821 |
* @param [in] f The function to invoke |
822 |
* @param [in] a1 The first argument to pass to the function to invoke |
823 |
* @param [in] a2 The second argument to pass to the function to invoke |
824 |
* @param [in] a3 The third argument to pass to the function to invoke |
825 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
826 |
* @return The EventId of the scheduled event. |
827 |
*/ |
828 |
template <typename U1, typename U2, typename U3, typename U4, |
829 |
typename T1, typename T2, typename T3, typename T4> |
830 |
static EventId ScheduleNow (void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4); |
831 |
|
832 |
/** |
833 |
* @see ScheduleNow(*) |
834 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
835 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
836 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
837 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
838 |
* @tparam U5 @deduced Formal type of the fifth argument to the function. |
839 |
* @tparam T1 @deduced Actual type of the first argument. |
840 |
* @tparam T2 @deduced Actual type of the second argument. |
841 |
* @tparam T3 @deduced Actual type of the third argument. |
842 |
* @tparam T4 @deduced Actual type of the fourth argument. |
843 |
* @tparam T5 @deduced Actual type of the fifth argument. |
844 |
* @param [in] f The function to invoke |
845 |
* @param [in] a1 The first argument to pass to the function to invoke |
846 |
* @param [in] a2 The second argument to pass to the function to invoke |
847 |
* @param [in] a3 The third argument to pass to the function to invoke |
848 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
849 |
* @param [in] a5 The fifth argument to pass to the function to invoke |
850 |
* @return The EventId of the scheduled event. |
851 |
*/ |
852 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
853 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
854 |
static EventId ScheduleNow (void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
855 |
|
856 |
/** @} */ |
317 |
/** @} */ |
857 |
|
318 |
|
858 |
/** |
319 |
/** |
|
864 |
* All events scheduled to expire at "Destroy" time are scheduled FIFO, |
325 |
* All events scheduled to expire at "Destroy" time are scheduled FIFO, |
865 |
* after all normal events have expired and only when |
326 |
* after all normal events have expired and only when |
866 |
* Simulator::Destroy is invoked. |
327 |
* Simulator::Destroy is invoked. |
867 |
* |
|
|
868 |
* @tparam MEM @deduced Class method function signature type. |
328 |
* @tparam MEM @deduced Class method function signature type. |
869 |
* @tparam OBJ @deduced Class type of the object. |
329 |
* @tparam OBJ @deduced Class type of the object. |
|
|
330 |
* @tparam Ts @deduced Argument types. |
870 |
* @param [in] mem_ptr Member method pointer to invoke |
331 |
* @param [in] mem_ptr Member method pointer to invoke |
871 |
* @param [in] obj The object on which to invoke the member method |
332 |
* @param [in] obj The object on which to invoke the member method |
|
|
333 |
* @param [in] args Arguments to pass to the invoked method |
872 |
* @return The EventId of the scheduled event. |
334 |
* @return The EventId of the scheduled event. |
873 |
*/ |
335 |
*/ |
874 |
template <typename MEM, typename OBJ> |
336 |
template <typename MEM, typename OBJ, typename... Ts> |
875 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj); |
337 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, Ts... args); |
876 |
|
338 |
|
877 |
/** |
339 |
/** |
878 |
* @see ScheduleDestroy(MEM,OBJ) |
|
|
879 |
* @tparam MEM @deduced Class method function signature type. |
880 |
* @tparam OBJ @deduced Class type of the object. |
881 |
* @tparam T1 @deduced Type of first argument. |
882 |
* @param [in] mem_ptr Member method pointer to invoke |
883 |
* @param [in] obj The object on which to invoke the member method |
884 |
* @param [in] a1 The first argument to pass to the invoked method |
885 |
* @return The EventId of the scheduled event. |
886 |
*/ |
887 |
template <typename MEM, typename OBJ, |
888 |
typename T1> |
889 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1); |
890 |
|
891 |
/** |
892 |
* @see ScheduleDestroy(MEM,OBJ) |
893 |
* @tparam MEM @deduced Class method function signature type. |
894 |
* @tparam OBJ @deduced Class type of the object. |
895 |
* @tparam T1 @deduced Type of first argument. |
896 |
* @tparam T2 @deduced Type of second argument. |
897 |
* @param [in] mem_ptr Member method pointer to invoke |
898 |
* @param [in] obj The object on which to invoke the member method |
899 |
* @param [in] a1 The first argument to pass to the invoked method |
900 |
* @param [in] a2 The second argument to pass to the invoked method |
901 |
* @return The EventId of the scheduled event. |
902 |
*/ |
903 |
template <typename MEM, typename OBJ, |
904 |
typename T1, typename T2> |
905 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1, T2 a2); |
906 |
|
907 |
/** |
908 |
* @see ScheduleDestroy(MEM,OBJ) |
909 |
* @tparam MEM @deduced Class method function signature type. |
910 |
* @tparam OBJ @deduced Class type of the object. |
911 |
* @tparam T1 @deduced Type of first argument. |
912 |
* @tparam T2 @deduced Type of second argument. |
913 |
* @tparam T3 @deduced Type of third argument. |
914 |
* @param [in] mem_ptr Member method pointer to invoke |
915 |
* @param [in] obj The object on which to invoke the member method |
916 |
* @param [in] a1 The first argument to pass to the invoked method |
917 |
* @param [in] a2 The second argument to pass to the invoked method |
918 |
* @param [in] a3 The third argument to pass to the invoked method |
919 |
* @return The EventId of the scheduled event. |
920 |
*/ |
921 |
template <typename MEM, typename OBJ, |
922 |
typename T1, typename T2, typename T3> |
923 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3); |
924 |
|
925 |
/** |
926 |
* @see ScheduleDestroy(MEM,OBJ) |
927 |
* @tparam MEM @deduced Class method function signature type. |
928 |
* @tparam OBJ @deduced Class type of the object. |
929 |
* @tparam T1 @deduced Type of first argument. |
930 |
* @tparam T2 @deduced Type of second argument. |
931 |
* @tparam T3 @deduced Type of third argument. |
932 |
* @tparam T4 @deduced Type of fourth argument. |
933 |
* @param [in] mem_ptr Member method pointer to invoke |
934 |
* @param [in] obj The object on which to invoke the member method |
935 |
* @param [in] a1 The first argument to pass to the invoked method |
936 |
* @param [in] a2 The second argument to pass to the invoked method |
937 |
* @param [in] a3 The third argument to pass to the invoked method |
938 |
* @param [in] a4 The fourth argument to pass to the invoked method |
939 |
* @return The EventId of the scheduled event. |
940 |
*/ |
941 |
template <typename MEM, typename OBJ, |
942 |
typename T1, typename T2, typename T3, typename T4> |
943 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, |
944 |
T1 a1, T2 a2, T3 a3, T4 a4); |
945 |
/** |
946 |
* @see ScheduleDestroy(MEM,OBJ) |
947 |
* @tparam MEM @deduced Class method function signature type. |
948 |
* @tparam OBJ @deduced Class type of the object. |
949 |
* @tparam T1 @deduced Type of first argument. |
950 |
* @tparam T2 @deduced Type of second argument. |
951 |
* @tparam T3 @deduced Type of third argument. |
952 |
* @tparam T4 @deduced Type of fourth argument. |
953 |
* @tparam T5 @deduced Type of fifth argument. |
954 |
* @param [in] mem_ptr Member method pointer to invoke |
955 |
* @param [in] obj The object on which to invoke the member method |
956 |
* @param [in] a1 The first argument to pass to the invoked method |
957 |
* @param [in] a2 The second argument to pass to the invoked method |
958 |
* @param [in] a3 The third argument to pass to the invoked method |
959 |
* @param [in] a4 The fourth argument to pass to the invoked method |
960 |
* @param [in] a5 The fifth argument to pass to the invoked method |
961 |
* @return The EventId of the scheduled event. |
962 |
*/ |
963 |
template <typename MEM, typename OBJ, |
964 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
965 |
static EventId ScheduleDestroy (MEM mem_ptr, OBJ obj, |
966 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
967 |
/** |
968 |
* @copybrief ScheduleDestroy(MEM,OBJ) |
340 |
* @copybrief ScheduleDestroy(MEM,OBJ) |
969 |
* When Simulator::Destroy() is called, the |
341 |
* When Simulator::Destroy() is called, the |
970 |
* function will be invoked with any supplied arguments. |
342 |
* function will be invoked with any supplied arguments. |
|
|
343 |
* @tparam Us @deduced Formal types of the function arguments. |
344 |
* @tparam Ts @deduced Actual types of the function arguments. |
971 |
* @param [in] f The function to invoke |
345 |
* @param [in] f The function to invoke |
|
|
346 |
* @param [in] args Arguments to pass to the function to invoke |
972 |
* @return The EventId of the scheduled event. |
347 |
* @return The EventId of the scheduled event. |
973 |
*/ |
348 |
*/ |
974 |
static EventId ScheduleDestroy (void (*f)(void)); |
349 |
template <typename... Us, typename... Ts> |
975 |
|
350 |
static EventId ScheduleDestroy (void (*f)(Us...), Ts... args); |
976 |
/** |
|
|
977 |
* @see ScheduleDestory((*)()) |
978 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
979 |
* @tparam T1 @deduced Actual type of the first argument. |
980 |
* @param [in] f The function to invoke |
981 |
* @param [in] a1 The first argument to pass to the function to invoke |
982 |
* @return The EventId of the scheduled event. |
983 |
*/ |
984 |
template <typename U1, |
985 |
typename T1> |
986 |
static EventId ScheduleDestroy (void (*f)(U1), T1 a1); |
987 |
|
988 |
/** |
989 |
* @see ScheduleDestory((*)()) |
990 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
991 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
992 |
* @tparam T1 @deduced Actual type of the first argument. |
993 |
* @tparam T2 @deduced Actual type of the second argument. |
994 |
* @param [in] f The function to invoke |
995 |
* @param [in] a1 The first argument to pass to the function to invoke |
996 |
* @param [in] a2 The second argument to pass to the function to invoke |
997 |
* @return The EventId of the scheduled event. |
998 |
*/ |
999 |
template <typename U1, typename U2, |
1000 |
typename T1, typename T2> |
1001 |
static EventId ScheduleDestroy (void (*f)(U1,U2), T1 a1, T2 a2); |
1002 |
|
1003 |
/** |
1004 |
* @see ScheduleDestory((*)()) |
1005 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
1006 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
1007 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
1008 |
* @tparam T1 @deduced Actual type of the first argument. |
1009 |
* @tparam T2 @deduced Actual type of the second argument. |
1010 |
* @tparam T3 @deduced Actual type of the third argument. |
1011 |
* @param [in] f The function to invoke |
1012 |
* @param [in] a1 The first argument to pass to the function to invoke |
1013 |
* @param [in] a2 The second argument to pass to the function to invoke |
1014 |
* @param [in] a3 The third argument to pass to the function to invoke |
1015 |
* @return The EventId of the scheduled event. |
1016 |
*/ |
1017 |
template <typename U1, typename U2, typename U3, |
1018 |
typename T1, typename T2, typename T3> |
1019 |
static EventId ScheduleDestroy (void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3); |
1020 |
|
1021 |
/** |
1022 |
* @see ScheduleDestory((*)()) |
1023 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
1024 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
1025 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
1026 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
1027 |
* @tparam T1 @deduced Actual type of the first argument. |
1028 |
* @tparam T2 @deduced Actual type of the second argument. |
1029 |
* @tparam T3 @deduced Actual type of the third argument. |
1030 |
* @tparam T4 @deduced Actual type of the fourth argument. |
1031 |
* @param [in] f The function to invoke |
1032 |
* @param [in] a1 The first argument to pass to the function to invoke |
1033 |
* @param [in] a2 The second argument to pass to the function to invoke |
1034 |
* @param [in] a3 The third argument to pass to the function to invoke |
1035 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
1036 |
* @return The EventId of the scheduled event. |
1037 |
*/ |
1038 |
template <typename U1, typename U2, typename U3, typename U4, |
1039 |
typename T1, typename T2, typename T3, typename T4> |
1040 |
static EventId ScheduleDestroy (void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4); |
1041 |
|
1042 |
/** |
1043 |
* @see ScheduleDestory((*)()) |
1044 |
* @tparam U1 @deduced Formal type of the first argument to the function. |
1045 |
* @tparam U2 @deduced Formal type of the second argument to the function. |
1046 |
* @tparam U3 @deduced Formal type of the third argument to the function. |
1047 |
* @tparam U4 @deduced Formal type of the fourth argument to the function. |
1048 |
* @tparam U5 @deduced Formal type of the fifth argument to the function. |
1049 |
* @tparam T1 @deduced Actual type of the first argument. |
1050 |
* @tparam T2 @deduced Actual type of the second argument. |
1051 |
* @tparam T3 @deduced Actual type of the third argument. |
1052 |
* @tparam T4 @deduced Actual type of the fourth argument. |
1053 |
* @tparam T5 @deduced Actual type of the fifth argument. |
1054 |
* @param [in] f The function to invoke |
1055 |
* @param [in] a1 The first argument to pass to the function to invoke |
1056 |
* @param [in] a2 The second argument to pass to the function to invoke |
1057 |
* @param [in] a3 The third argument to pass to the function to invoke |
1058 |
* @param [in] a4 The fourth argument to pass to the function to invoke |
1059 |
* @param [in] a5 The fifth argument to pass to the function to invoke |
1060 |
* @return The EventId of the scheduled event. |
1061 |
*/ |
1062 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
1063 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1064 |
static EventId ScheduleDestroy (void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5); |
1065 |
|
1066 |
/** @} */ |
351 |
/** @} */ |
1067 |
|
352 |
|
1068 |
/** |
353 |
/** |
|
1234 |
|
519 |
|
1235 |
namespace ns3 { |
520 |
namespace ns3 { |
1236 |
|
521 |
|
1237 |
template <typename MEM, typename OBJ> |
522 |
template <typename MEM, typename OBJ, typename... Ts> |
1238 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj) |
523 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, Ts... args) |
1239 |
{ |
524 |
{ |
1240 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj)); |
525 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, args...)); |
1241 |
} |
526 |
} |
1242 |
|
527 |
|
1243 |
|
528 |
template <typename... Us, typename... Ts> |
1244 |
template <typename MEM, typename OBJ, |
529 |
EventId Simulator::Schedule (Time const &delay, void (*f)(Us...), Ts... args) |
1245 |
typename T1> |
|
|
1246 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1) |
1247 |
{ |
530 |
{ |
1248 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, a1)); |
531 |
return DoSchedule (delay, MakeEvent (f, args...)); |
1249 |
} |
532 |
} |
1250 |
|
533 |
|
1251 |
template <typename MEM, typename OBJ, |
534 |
|
1252 |
typename T1, typename T2> |
535 |
|
1253 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2) |
536 |
|
|
|
537 |
template <typename MEM, typename OBJ, typename... Ts> |
538 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, Ts... args) |
1254 |
{ |
539 |
{ |
1255 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, a1, a2)); |
540 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, args...)); |
1256 |
} |
541 |
} |
1257 |
|
542 |
|
1258 |
template <typename MEM, typename OBJ, |
543 |
template <typename... Us, typename... Ts> |
1259 |
typename T1, typename T2, typename T3> |
544 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(Us...), Ts... args) |
1260 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3) |
|
|
1261 |
{ |
545 |
{ |
1262 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, a1, a2, a3)); |
546 |
return ScheduleWithContext (context, delay, MakeEvent (f, args...)); |
1263 |
} |
547 |
} |
1264 |
|
548 |
|
1265 |
template <typename MEM, typename OBJ, |
549 |
|
1266 |
typename T1, typename T2, typename T3, typename T4> |
550 |
|
1267 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4) |
551 |
|
|
|
552 |
template <typename MEM, typename OBJ, typename... Ts> |
553 |
EventId |
554 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, Ts... args) |
1268 |
{ |
555 |
{ |
1269 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, a1, a2, a3, a4)); |
556 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, args...)); |
1270 |
} |
557 |
} |
1271 |
|
558 |
|
1272 |
template <typename MEM, typename OBJ, |
559 |
template <typename... Us, typename... Ts> |
1273 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
560 |
EventId |
1274 |
EventId Simulator::Schedule (Time const &delay, MEM mem_ptr, OBJ obj, |
561 |
Simulator::ScheduleNow (void (*f)(Us...), Ts... args) |
1275 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
|
|
1276 |
{ |
562 |
{ |
1277 |
return DoSchedule (delay, MakeEvent (mem_ptr, obj, a1, a2, a3, a4, a5)); |
563 |
return DoScheduleNow (MakeEvent (f, args...)); |
1278 |
} |
564 |
} |
1279 |
|
565 |
|
1280 |
template <typename U1, |
566 |
|
1281 |
typename T1> |
567 |
|
1282 |
EventId Simulator::Schedule (Time const &delay, void (*f)(U1), T1 a1) |
568 |
template <typename MEM, typename OBJ, typename... Ts> |
|
|
569 |
EventId |
570 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, Ts... args) |
1283 |
{ |
571 |
{ |
1284 |
return DoSchedule (delay, MakeEvent (f, a1)); |
572 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, args...)); |
1285 |
} |
573 |
} |
1286 |
|
574 |
|
1287 |
template <typename U1, typename U2, |
575 |
template <typename... Us, typename... Ts> |
1288 |
typename T1, typename T2> |
576 |
EventId |
1289 |
EventId Simulator::Schedule (Time const &delay, void (*f)(U1,U2), T1 a1, T2 a2) |
577 |
Simulator::ScheduleDestroy (void (*f)(Us...), Ts... args) |
1290 |
{ |
578 |
{ |
1291 |
return DoSchedule (delay, MakeEvent (f, a1, a2)); |
579 |
return DoScheduleDestroy (MakeEvent (f, args...)); |
1292 |
} |
|
|
1293 |
|
1294 |
template <typename U1, typename U2, typename U3, |
1295 |
typename T1, typename T2, typename T3> |
1296 |
EventId Simulator::Schedule (Time const &delay, void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3) |
1297 |
{ |
1298 |
return DoSchedule (delay, MakeEvent (f, a1, a2, a3)); |
1299 |
} |
1300 |
|
1301 |
template <typename U1, typename U2, typename U3, typename U4, |
1302 |
typename T1, typename T2, typename T3, typename T4> |
1303 |
EventId Simulator::Schedule (Time const &delay, void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4) |
1304 |
{ |
1305 |
return DoSchedule (delay, MakeEvent (f, a1, a2, a3, a4)); |
1306 |
} |
1307 |
|
1308 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
1309 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1310 |
EventId Simulator::Schedule (Time const &delay, void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1311 |
{ |
1312 |
return DoSchedule (delay, MakeEvent (f, a1, a2, a3, a4, a5)); |
1313 |
} |
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 |
template <typename MEM, typename OBJ> |
1319 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj) |
1320 |
{ |
1321 |
ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj)); |
1322 |
} |
1323 |
|
1324 |
|
1325 |
template <typename MEM, typename OBJ, |
1326 |
typename T1> |
1327 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1) |
1328 |
{ |
1329 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, a1)); |
1330 |
} |
1331 |
|
1332 |
template <typename MEM, typename OBJ, |
1333 |
typename T1, typename T2> |
1334 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2) |
1335 |
{ |
1336 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, a1, a2)); |
1337 |
} |
1338 |
|
1339 |
template <typename MEM, typename OBJ, |
1340 |
typename T1, typename T2, typename T3> |
1341 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3) |
1342 |
{ |
1343 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, a1, a2, a3)); |
1344 |
} |
1345 |
|
1346 |
template <typename MEM, typename OBJ, |
1347 |
typename T1, typename T2, typename T3, typename T4> |
1348 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4) |
1349 |
{ |
1350 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, a1, a2, a3, a4)); |
1351 |
} |
1352 |
|
1353 |
template <typename MEM, typename OBJ, |
1354 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1355 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj, |
1356 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1357 |
{ |
1358 |
return ScheduleWithContext (context, delay, MakeEvent (mem_ptr, obj, a1, a2, a3, a4, a5)); |
1359 |
} |
1360 |
|
1361 |
template <typename U1, |
1362 |
typename T1> |
1363 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1), T1 a1) |
1364 |
{ |
1365 |
return ScheduleWithContext (context, delay, MakeEvent (f, a1)); |
1366 |
} |
1367 |
|
1368 |
template <typename U1, typename U2, |
1369 |
typename T1, typename T2> |
1370 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2), T1 a1, T2 a2) |
1371 |
{ |
1372 |
return ScheduleWithContext (context, delay, MakeEvent (f, a1, a2)); |
1373 |
} |
1374 |
|
1375 |
template <typename U1, typename U2, typename U3, |
1376 |
typename T1, typename T2, typename T3> |
1377 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3) |
1378 |
{ |
1379 |
return ScheduleWithContext (context, delay, MakeEvent (f, a1, a2, a3)); |
1380 |
} |
1381 |
|
1382 |
template <typename U1, typename U2, typename U3, typename U4, |
1383 |
typename T1, typename T2, typename T3, typename T4> |
1384 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4) |
1385 |
{ |
1386 |
return ScheduleWithContext (context, delay, MakeEvent (f, a1, a2, a3, a4)); |
1387 |
} |
1388 |
|
1389 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
1390 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1391 |
void Simulator::ScheduleWithContext (uint32_t context, Time const &delay, void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1392 |
{ |
1393 |
return ScheduleWithContext (context, delay, MakeEvent (f, a1, a2, a3, a4, a5)); |
1394 |
} |
1395 |
|
1396 |
|
1397 |
|
1398 |
|
1399 |
template <typename MEM, typename OBJ> |
1400 |
EventId |
1401 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj) |
1402 |
{ |
1403 |
return DoScheduleNow (MakeEvent (mem_ptr, obj)); |
1404 |
} |
1405 |
|
1406 |
|
1407 |
template <typename MEM, typename OBJ, |
1408 |
typename T1> |
1409 |
EventId |
1410 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1) |
1411 |
{ |
1412 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, a1)); |
1413 |
} |
1414 |
|
1415 |
template <typename MEM, typename OBJ, |
1416 |
typename T1, typename T2> |
1417 |
EventId |
1418 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1, T2 a2) |
1419 |
{ |
1420 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, a1, a2)); |
1421 |
} |
1422 |
|
1423 |
template <typename MEM, typename OBJ, |
1424 |
typename T1, typename T2, typename T3> |
1425 |
EventId |
1426 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3) |
1427 |
{ |
1428 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, a1, a2, a3)); |
1429 |
} |
1430 |
|
1431 |
template <typename MEM, typename OBJ, |
1432 |
typename T1, typename T2, typename T3, typename T4> |
1433 |
EventId |
1434 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4) |
1435 |
{ |
1436 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, a1, a2, a3, a4)); |
1437 |
} |
1438 |
|
1439 |
template <typename MEM, typename OBJ, |
1440 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1441 |
EventId |
1442 |
Simulator::ScheduleNow (MEM mem_ptr, OBJ obj, |
1443 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1444 |
{ |
1445 |
return DoScheduleNow (MakeEvent (mem_ptr, obj, a1, a2, a3, a4, a5)); |
1446 |
} |
1447 |
|
1448 |
template <typename U1, |
1449 |
typename T1> |
1450 |
EventId |
1451 |
Simulator::ScheduleNow (void (*f)(U1), T1 a1) |
1452 |
{ |
1453 |
return DoScheduleNow (MakeEvent (f, a1)); |
1454 |
} |
1455 |
|
1456 |
template <typename U1, typename U2, |
1457 |
typename T1, typename T2> |
1458 |
EventId |
1459 |
Simulator::ScheduleNow (void (*f)(U1,U2), T1 a1, T2 a2) |
1460 |
{ |
1461 |
return DoScheduleNow (MakeEvent (f, a1, a2)); |
1462 |
} |
1463 |
|
1464 |
template <typename U1, typename U2, typename U3, |
1465 |
typename T1, typename T2, typename T3> |
1466 |
EventId |
1467 |
Simulator::ScheduleNow (void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3) |
1468 |
{ |
1469 |
return DoScheduleNow (MakeEvent (f, a1, a2, a3)); |
1470 |
} |
1471 |
|
1472 |
template <typename U1, typename U2, typename U3, typename U4, |
1473 |
typename T1, typename T2, typename T3, typename T4> |
1474 |
EventId |
1475 |
Simulator::ScheduleNow (void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4) |
1476 |
{ |
1477 |
return DoScheduleNow (MakeEvent (f, a1, a2, a3, a4)); |
1478 |
} |
1479 |
|
1480 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
1481 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1482 |
EventId |
1483 |
Simulator::ScheduleNow (void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1484 |
{ |
1485 |
return DoScheduleNow (MakeEvent (f, a1, a2, a3, a4, a5)); |
1486 |
} |
1487 |
|
1488 |
|
1489 |
|
1490 |
template <typename MEM, typename OBJ> |
1491 |
EventId |
1492 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj) |
1493 |
{ |
1494 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj)); |
1495 |
} |
1496 |
|
1497 |
|
1498 |
template <typename MEM, typename OBJ, |
1499 |
typename T1> |
1500 |
EventId |
1501 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1) |
1502 |
{ |
1503 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, a1)); |
1504 |
} |
1505 |
|
1506 |
template <typename MEM, typename OBJ, |
1507 |
typename T1, typename T2> |
1508 |
EventId |
1509 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1, T2 a2) |
1510 |
{ |
1511 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, a1, a2)); |
1512 |
} |
1513 |
|
1514 |
template <typename MEM, typename OBJ, |
1515 |
typename T1, typename T2, typename T3> |
1516 |
EventId |
1517 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3) |
1518 |
{ |
1519 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, a1, a2, a3)); |
1520 |
} |
1521 |
|
1522 |
template <typename MEM, typename OBJ, |
1523 |
typename T1, typename T2, typename T3, typename T4> |
1524 |
EventId |
1525 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, T1 a1, T2 a2, T3 a3, T4 a4) |
1526 |
{ |
1527 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, a1, a2, a3, a4)); |
1528 |
} |
1529 |
|
1530 |
template <typename MEM, typename OBJ, |
1531 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1532 |
EventId |
1533 |
Simulator::ScheduleDestroy (MEM mem_ptr, OBJ obj, |
1534 |
T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1535 |
{ |
1536 |
return DoScheduleDestroy (MakeEvent (mem_ptr, obj, a1, a2, a3, a4, a5)); |
1537 |
} |
1538 |
|
1539 |
template <typename U1, |
1540 |
typename T1> |
1541 |
EventId |
1542 |
Simulator::ScheduleDestroy (void (*f)(U1), T1 a1) |
1543 |
{ |
1544 |
return DoScheduleDestroy (MakeEvent (f, a1)); |
1545 |
} |
1546 |
|
1547 |
template <typename U1, typename U2, |
1548 |
typename T1, typename T2> |
1549 |
EventId |
1550 |
Simulator::ScheduleDestroy (void (*f)(U1,U2), T1 a1, T2 a2) |
1551 |
{ |
1552 |
return DoScheduleDestroy (MakeEvent (f, a1, a2)); |
1553 |
} |
1554 |
|
1555 |
template <typename U1, typename U2, typename U3, |
1556 |
typename T1, typename T2, typename T3> |
1557 |
EventId |
1558 |
Simulator::ScheduleDestroy (void (*f)(U1,U2,U3), T1 a1, T2 a2, T3 a3) |
1559 |
{ |
1560 |
return DoScheduleDestroy (MakeEvent (f, a1, a2, a3)); |
1561 |
} |
1562 |
|
1563 |
template <typename U1, typename U2, typename U3, typename U4, |
1564 |
typename T1, typename T2, typename T3, typename T4> |
1565 |
EventId |
1566 |
Simulator::ScheduleDestroy (void (*f)(U1,U2,U3,U4), T1 a1, T2 a2, T3 a3, T4 a4) |
1567 |
{ |
1568 |
return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4)); |
1569 |
} |
1570 |
|
1571 |
template <typename U1, typename U2, typename U3, typename U4, typename U5, |
1572 |
typename T1, typename T2, typename T3, typename T4, typename T5> |
1573 |
EventId |
1574 |
Simulator::ScheduleDestroy (void (*f)(U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
1575 |
{ |
1576 |
return DoScheduleDestroy (MakeEvent (f, a1, a2, a3, a4, a5)); |
1577 |
} |
580 |
} |
1578 |
|
581 |
|
1579 |
} // namespace ns3 |
582 |
} // namespace ns3 |