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 T1 > | |
void | SetArgs (T1 a1) |
Set the arguments to be used when invoking the expire function. | |
template<typename T1 , typename T2 > | |
void | SetArgs (T1 a1, T2 a2) |
template<typename T1 , typename T2 , typename T3 > | |
void | SetArgs (T1 a1, T2 a2, T3 a3) |
template<typename T1 , typename T2 , typename T3 , typename T4 > | |
void | SetArgs (T1 a1, T2 a2, T3 a3, T4 a4) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
void | SetArgs (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > | |
void | SetArgs (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) |
The timer implementation underlying Timer and Watchdog.
Definition at line 42 of file timer-impl.h.
|
inlinevirtual |
Destructor.
Definition at line 46 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::TimerImpl::SetArgs | ( | T1 | a1 | ) |
Set the arguments to be used when invoking the expire function.
T1 | [deduced] Type of the first argument. |
[in] | a1 | The first argument |
Definition at line 1085 of file timer-impl.h.
References NS_FATAL_ERROR.
Referenced by ns3::TrickleTimer::SetArguments(), ns3::Watchdog::SetArguments(), and ns3::Timer::SetArguments().
void ns3::TimerImpl::SetArgs | ( | T1 | a1, |
T2 | a2 | ||
) |
T1 | [deduced] Type of the first argument. |
T2 | [deduced] Type of the second argument. |
[in] | a1 | the first argument |
[in] | a2 | the second argument |
Definition at line 1099 of file timer-impl.h.
References NS_FATAL_ERROR.
void ns3::TimerImpl::SetArgs | ( | T1 | a1, |
T2 | a2, | ||
T3 | a3 | ||
) |
T1 | [deduced] Type of the first argument. |
T2 | [deduced] Type of the second argument. |
T3 | [deduced] Type of the third argument. |
[in] | a1 | the first argument |
[in] | a2 | the second argument |
[in] | a3 | the third argument |
Definition at line 1115 of file timer-impl.h.
References NS_FATAL_ERROR.
void ns3::TimerImpl::SetArgs | ( | T1 | a1, |
T2 | a2, | ||
T3 | a3, | ||
T4 | a4 | ||
) |
T1 | [deduced] Type of the first argument. |
T2 | [deduced] Type of the second argument. |
T3 | [deduced] Type of the third argument. |
T4 | [deduced] Type of the fourth argument. |
[in] | a1 | the first argument |
[in] | a2 | the second argument |
[in] | a3 | the third argument |
[in] | a4 | the fourth argument |
Definition at line 1132 of file timer-impl.h.
References NS_FATAL_ERROR.
void ns3::TimerImpl::SetArgs | ( | T1 | a1, |
T2 | a2, | ||
T3 | a3, | ||
T4 | a4, | ||
T5 | a5 | ||
) |
T1 | [deduced] Type of the first argument. |
T2 | [deduced] Type of the second argument. |
T3 | [deduced] Type of the third argument. |
T4 | [deduced] Type of the fourth argument. |
T5 | [deduced] Type of the fifth argument. |
[in] | a1 | the first argument |
[in] | a2 | the second argument |
[in] | a3 | the third argument |
[in] | a4 | the fourth argument |
[in] | a5 | the fifth argument |
Definition at line 1150 of file timer-impl.h.
References NS_FATAL_ERROR.
void ns3::TimerImpl::SetArgs | ( | T1 | a1, |
T2 | a2, | ||
T3 | a3, | ||
T4 | a4, | ||
T5 | a5, | ||
T6 | a6 | ||
) |
T1 | [deduced] Type of the first argument. |
T2 | [deduced] Type of the second argument. |
T3 | [deduced] Type of the third argument. |
T4 | [deduced] Type of the fourth argument. |
T5 | [deduced] Type of the fifth argument. |
T6 | [deduced] Type of the sixth argument. |
[in] | a1 | the first argument |
[in] | a2 | the second argument |
[in] | a3 | the third argument |
[in] | a4 | the fourth argument |
[in] | a5 | the fifth argument |
[in] | a6 | the sixth argument |
Definition at line 1169 of file timer-impl.h.
References NS_FATAL_ERROR.