The timer implementation underlying Timer and Watchdog. More...
#include "timer-impl.h"
Public Member Functions | |
| virtual | ~TimerImpl () |
| Destructor. | |
| virtual void | Invoke ()=0 |
| Invoke the expire function. | |
| virtual EventId | Schedule (const Time &delay)=0 |
| Schedule the callback for a future time. | |
| template<typename... Args> | |
| void | SetArgs (Args... args) |
| Set the arguments to be used when invoking the expire function. | |
The timer implementation underlying Timer and Watchdog.
Definition at line 34 of file timer-impl.h.
|
inlinevirtual |
Destructor.
Definition at line 38 of file timer-impl.h.
|
pure virtual |
Invoke the expire function.
Schedule the callback for a future time.
| [in] | delay | The amount of time until the timer expires. |
| void ns3::internal::TimerImpl::SetArgs | ( | Args... | args | ) |
Set the arguments to be used when invoking the expire function.
| Args | [deduced] Type template parameter pack |
| [in] | args | The arguments to pass to the invoked method |
Definition at line 182 of file timer-impl.h.
References NS_FATAL_ERROR, and ns3::internal::TimerImplX< Args >::SetArguments().