A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
TimerImpl Implementation
+ Collaboration diagram for TimerImpl Implementation:

Files

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

Classes

struct  ns3::internal::TimerImplX< Args >
 TimerImpl specialization class for varying numbers of arguments. More...
 

Functions

template<typename U , typename... Ts>
TimerImplns3::internal::MakeTimerImpl (U(fn)(Ts...))
 Make a TimerImpl from a function pointer taking varying numbers of arguments.
 
template<typename OBJ_PTR , typename U , typename V , typename... Ts>
TimerImplns3::internal::MakeTimerImpl (U(V::*memPtr)(Ts...), OBJ_PTR objPtr)
 Make a TimerImpl from a class method pointer taking a varying number of arguments.
 

Detailed Description

Function Documentation

◆ MakeTimerImpl() [1/2]

template<typename U , typename... Ts>
TimerImpl * ns3::internal::MakeTimerImpl ( U(fn)(Ts...) )

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

Template Parameters
U[deduced] Return type of the callback function.
Ts[deduced] Argument types of the callback function.
Returns
The TimerImpl.

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

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

+ Here is the caller graph for this function:

◆ MakeTimerImpl() [2/2]

template<typename OBJ_PTR , typename U , typename V , typename... Ts>
TimerImpl * ns3::internal::MakeTimerImpl ( U(V::* memPtr )(Ts...),
OBJ_PTR objPtr )

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

Template Parameters
OBJ_PTR[deduced] Class type.
U[deduced] Class method function return type.
V[deduced] Class method function class type.
Ts[deduced] Class method function argument types.
Parameters
[in]memPtrClass method to invoke when the timer expires.
[in]objPtrObject instance pointer.
Returns
The TimerImpl.

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