A Discrete-Event Network Simulator
API
MakeEvent from Function Pointers.

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

+ Collaboration diagram for MakeEvent from Function Pointers.:

Functions

EventImpl * ns3::MakeEvent (void(*f)(void))
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename U1 , typename T1 >
EventImpl * ns3::MakeEvent (void(*f)(U1), T1 a1)
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename U1 , typename U2 , typename T1 , typename T2 >
EventImpl * ns3::MakeEvent (void(*f)(U1, U2), T1 a1, T2 a2)
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename U1 , typename U2 , typename U3 , typename T1 , typename T2 , typename T3 >
EventImpl * ns3::MakeEvent (void(*f)(U1, U2, U3), T1 a1, T2 a2, T3 a3)
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename U1 , typename U2 , typename U3 , typename U4 , typename T1 , typename T2 , typename T3 , typename T4 >
EventImpl * ns3::MakeEvent (void(*f)(U1, U2, U3, U4), T1 a1, T2 a2, T3 a3, T4 a4)
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 
template<typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
EventImpl * ns3::MakeEvent (void(*f)(U1, U2, U3, U4, U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
 Make an EventImpl from a function pointer taking varying numbers of arguments. More...
 

Detailed Description

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

Function Documentation

EventImpl * ns3::MakeEvent ( void(*)(void)  f)

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

Parameters
fThe function pointer.
Returns
The constructed EventImpl.

Definition at line 34 of file make-event.cc.

References NS_LOG_FUNCTION.

Referenced by FakeNetDevice::Doit3(), ns3::TapBridge::ReadCallback(), ns3::FdNetDevice::ReceiveCallback(), ns3::Simulator::Schedule(), ns3::Simulator::ScheduleDestroy(), ns3::Simulator::ScheduleNow(), ns3::Simulator::ScheduleWithContext(), and test().

+ Here is the caller graph for this function:

template<typename U1 , typename T1 >
EventImpl * ns3::MakeEvent ( void(*)(U1)  f,
T1  a1 
)

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

Template Parameters
U1Formal type of the argument to the function.
T1Actual type of the argument to the function.
Parameters
fThe function pointer.
a1Argument to be bound to the function.
Returns
The constructed EventImpl.

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

template<typename U1 , typename U2 , typename T1 , typename T2 >
EventImpl * ns3::MakeEvent ( void(*)(U1, U2)  f,
T1  a1,
T2  a2 
)

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

Template Parameters
U1Formal type of the first argument to the function.
U2Formal type of the second argument to the function.
T1Actual type of the first argument to the function.
T2Actual type of the second argument to the function.
Parameters
fThe function pointer.
a1First argument to be bound to the function.
a2Second argument to be bound to the function.
Returns
The constructed EventImpl.

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

template<typename U1 , typename U2 , typename U3 , typename T1 , typename T2 , typename T3 >
EventImpl * ns3::MakeEvent ( void(*)(U1, U2, U3)  f,
T1  a1,
T2  a2,
T3  a3 
)

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

Template Parameters
U1Formal type of the first argument to the function.
U2Formal type of the second argument to the function.
U3Formal type of the third argument to the function.
T1Actual type of the first argument to the function.
T2Actual type of the second argument to the function.
T3Actual type of the third argument to the function.
Parameters
fThe function pointer.
a1First argument to be bound to the function.
a2Second argument to be bound to the function.
a3Third argument to be bound to the function.
Returns
The constructed EventImpl.

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

template<typename U1 , typename U2 , typename U3 , typename U4 , typename T1 , typename T2 , typename T3 , typename T4 >
EventImpl * ns3::MakeEvent ( void(*)(U1, U2, U3, U4)  f,
T1  a1,
T2  a2,
T3  a3,
T4  a4 
)

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

Template Parameters
U1Formal type of the first argument to the function.
U2Formal type of the second argument to the function.
U3Formal type of the third argument to the function.
U4Formal type of the fourth argument to the function.
T1Actual type of the first argument to the function.
T2Actual type of the second argument to the function.
T3Actual type of the third argument to the function.
T4Actual type of the fourth argument to the function.
Parameters
fThe function pointer.
a1First argument to be bound to the function.
a2Second argument to be bound to the function.
a3Third argument to be bound to the function.
a4Fourth argument to be bound to the function.
Returns
The constructed EventImpl.

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

template<typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
EventImpl * ns3::MakeEvent ( void(*)(U1, U2, U3, U4, U5)  f,
T1  a1,
T2  a2,
T3  a3,
T4  a4,
T5  a5 
)

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

Template Parameters
U1Formal type of the first argument to the function.
U2Formal type of the second argument to the function.
U3Formal type of the third argument to the function.
U4Formal type of the fourth argument to the function.
U5Formal type of the fifth argument to the function.
T1Actual type of the first argument to the function.
T2Actual type of the second argument to the function.
T3Actual type of the third argument to the function.
T4Actual type of the fourth argument to the function.
T5Actual type of the fifth argument to the function.
Parameters
fThe function pointer.
a1First argument to be bound to the function.
a2Second argument to be bound to the function.
a3Third argument to be bound to the function.
a4Fourth argument to be bound to the function.
a5Fifth argument to be bound to the function.
Returns
The constructed EventImpl.

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