A Discrete-Event Network Simulator
API
TimerImpl Implementation
+ Collaboration diagram for TimerImpl Implementation:

Files

file  timer-impl.h
 ns3::TimerImpl declaration and implementation.
 

Classes

struct  ns3::TimerImplFive< T1, T2, T3, T4, T5 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerImplFour< T1, T2, T3, T4 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerImplMemberTraits< T >
 Helper for the MakeTimerImpl functions which take a class method. More...
 
struct  ns3::TimerImplMemberTraits< T * >
 Helper for the MakeTimerImpl functions which take a class method. More...
 
struct  ns3::TimerImplOne< T1 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerImplSix< T1, T2, T3, T4, T5, T6 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerImplThree< T1, T2, T3 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerImplTwo< T1, T2 >
 TimerImpl specialization class for varying numbers of arguments. More...
 
struct  ns3::TimerTraits< T >
 Type and reference traits for TimerImpl arguments. More...
 

Functions

template<typename FN >
TimerImpl * ns3::MakeTimerImpl (FN fn)
 Make a TimerImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 0 >, FN fn)
 Make a TimerImpl from a function pointer taking zero arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 1 >, FN fn)
 Make a TimerImpl from a function pointer taking one argument. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 2 >, FN fn)
 Make a TimerImpl from a function pointer taking two arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 3 >, FN fn)
 Make a TimerImpl from a function pointer taking three arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 4 >, FN fn)
 Make a TimerImpl from a function pointer taking four arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 5 >, FN fn)
 Make a TimerImpl from a function pointer taking five arguments. More...
 
template<typename FN >
TimerImpl * ns3::MakeTimerImpl (IntToType< 6 >, FN fn)
 Make a TimerImpl from a function pointer taking six arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a class method pointer taking a varying number of arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 0 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking zero arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 1 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking one argument. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 2 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking two arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 3 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking three arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 4 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking four arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 5 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking five arguments. More...
 
template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl * ns3::MakeTimerImpl (IntToType< 6 >, MEM_PTR memPtr, OBJ_PTR objPtr)
 Make a TimerImpl from a function pointer taking six arguments. More...
 

Detailed Description

Function Documentation

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( FN  fn)

Make a TimerImpl from a function pointer taking varying numbers of arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 253 of file timer-impl.h.

References NS_ASSERT.

Referenced by ns3::MakeTimerImpl(), ns3::Watchdog::SetFunction(), and ns3::Timer::SetFunction().

+ Here is the caller graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 0 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking zero arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 265 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 1 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking one argument.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 292 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 2 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking two arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 328 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 3 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking three arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 369 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 4 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking four arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 415 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 5 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking five arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 466 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename FN >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 6 >  ,
FN  fn 
)

Make a TimerImpl from a function pointer taking six arguments.

Template Parameters
FN[deduced] Function signature type of the callback function.
Parameters
[in]fnThe function pointer to invoke when the timer expires.
Returns
The TimerImpl.

Definition at line 522 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a class method pointer taking a varying number of arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 627 of file timer-impl.h.

References ns3::MakeTimerImpl(), and NS_ASSERT.

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 0 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking zero arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 639 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 1 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking one argument.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 668 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 2 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking two arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 706 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 3 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking three arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 749 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 4 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking four arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 797 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 5 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking five arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 850 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function:

template<typename MEM_PTR , typename OBJ_PTR >
TimerImpl* ns3::MakeTimerImpl ( IntToType< 6 >  ,
MEM_PTR  memPtr,
OBJ_PTR  objPtr 
)

Make a TimerImpl from a function pointer taking six arguments.

Template Parameters
MEM_PTR[deduced] Class method function signature type.
OBJ_PTR[deduced] Class type.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

Definition at line 908 of file timer-impl.h.

References ns3::Simulator::Schedule().

+ Here is the call graph for this function: