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.
Referenced by ns3::Watchdog::Expire(), and ns3::TrickleTimer::TimerExpire().
Schedule the callback for a future time.
[in] | delay | The amount of time until the timer expires. |
Referenced by ns3::Timer::Resume(), and ns3::Timer::Schedule().
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.
Referenced by ns3::Timer::SetArguments(), ns3::TrickleTimer::SetArguments(), and ns3::Watchdog::SetArguments().