23 #include "fatal-error.h"
26 #include "int-to-type.h"
92 template <
typename FN>
101 template <
typename MEM_PTR,
typename OBJ_PTR>
110 template <
typename T1>
118 template <
typename T1,
typename T2>
127 template <
typename T1,
typename T2,
typename T3>
137 template <
typename T1,
typename T2,
typename T3,
typename T4>
148 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
160 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
typename T6>
161 void SetArguments (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6);
205 enum Timer::State
GetState (
void)
const;
235 TIMER_SUSPENDED = (1 << 7)
247 #include "timer-impl.h"
252 template <
typename FN>
257 m_impl = MakeTimerImpl (fn);
259 template <
typename MEM_PTR,
typename OBJ_PTR>
264 m_impl = MakeTimerImpl (memPtr, objPtr);
267 template <
typename T1>
273 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
276 m_impl->SetArgs (a1);
278 template <
typename T1,
typename T2>
284 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
287 m_impl->SetArgs (a1, a2);
290 template <
typename T1,
typename T2,
typename T3>
296 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
299 m_impl->SetArgs (a1, a2, a3);
302 template <
typename T1,
typename T2,
typename T3,
typename T4>
308 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
311 m_impl->SetArgs (a1, a2, a3, a4);
314 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
320 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
323 m_impl->SetArgs (a1, a2, a3, a4, a5);
326 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
typename T6>
332 NS_FATAL_ERROR (
"You cannot set the arguments of a Timer before setting its function.");
335 m_impl->SetArgs (a1, a2, a3, a4, a5, a6);
#define NS_FATAL_ERROR(msg)
fatal error handling
bool IsRunning(void) const
void SetDelay(const Time &delay)
enum Timer::State GetState(void) const
Time GetDelay(void) const
an identifier for simulation events.
bool IsExpired(void) const
bool IsSuspended(void) const
Time GetDelayLeft(void) const