A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
MakeEvent from Function Pointers and Lambdas.
+ Collaboration diagram for MakeEvent from Function Pointers and Lambdas.:

Functions

template<typename T >
EventImplns3::MakeEvent (T function)
 Make an EventImpl from a lambda.
 
template<typename... Us, typename... Ts>
EventImplns3::MakeEvent (void(*f)(Us...), Ts... args)
 Make an EventImpl from a function pointer taking varying numbers of arguments.
 

Detailed Description

Create EventImpl instances from function pointers or lambdas which take varying numbers of arguments.

Function Documentation

◆ MakeEvent() [1/2]

template<typename T >
EventImpl * ns3::MakeEvent ( T function)

Make an EventImpl from a lambda.

Parameters
[in]functionThe lambda
Returns
The constructed EventImpl.

Definition at line 195 of file make-event.h.

◆ MakeEvent() [2/2]

template<typename... Us, typename... Ts>
EventImpl * ns3::MakeEvent ( void(* )(Us...),
Ts... args )

Make an EventImpl from a function pointer taking varying numbers of arguments.

Template Parameters
Us[deduced] Formal types of the arguments to the function.
Ts[deduced] Actual types of the arguments to the function.
Parameters
[in]fThe function pointer.
[in]argsArguments to be bound to the function.
Returns
The constructed EventImpl.

Definition at line 164 of file make-event.h.