A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
MakeBoundCallback from functions bound with up to three arguments.
+ Collaboration diagram for MakeBoundCallback from functions bound with up to three arguments.:
template<typename R , typename... Args, typename... BArgs>
auto ns3::MakeBoundCallback (R(*fnPtr)(Args...), BArgs &&... bargs)
 Make Callbacks with varying number of bound arguments.
 
template<typename T , typename OBJ , typename R , typename... Args, typename... BArgs>
auto ns3::MakeCallback (R(T::*memPtr)(Args...), OBJ objPtr, BArgs... bargs)
 

Detailed Description

Build bound Callbacks which take varying numbers of arguments, and potentially returning a value.

Internal:

The following is experimental code. It works but we have not yet determined whether or not it is really useful and whether or not we really want to use it.

Function Documentation

◆ MakeBoundCallback()

template<typename R , typename... Args, typename... BArgs>
auto ns3::MakeBoundCallback ( R(* fnPtr )(Args...),
BArgs &&... bargs )

Make Callbacks with varying number of bound arguments.

Template Parameters
R[deduced] Return type of the callback function..
Args[deduced] Type list of any arguments to the member function.
BArgs[deduced] Type list of bound arguments.
Parameters
[in]fnPtrFunction pointer
[in]bargsBound arguments
Returns
A bound Callback

Definition at line 745 of file callback.h.

Referenced by ns3::LteHelper::ActivateDataRadioBearer(), ns3::CommandLine::AddValue(), Ns3TcpCubicTestCase::ConnectCwndTrace(), ns3::RadioBearerStatsConnector::ConnectTracesDrbEnb(), ns3::RadioBearerStatsConnector::ConnectTracesDrbUe(), ns3::RadioBearerStatsConnector::ConnectTracesSrb0(), ns3::RadioBearerStatsConnector::ConnectTracesSrb1(), ns3::DsssPhy::CreateDsssMode(), ns3::EhtPhy::CreateEhtMcs(), ns3::ErpOfdmPhy::CreateErpOfdmMode(), ns3::HePhy::CreateHeMcs(), ns3::HtPhy::CreateHtMcs(), ns3::OfdmPhy::CreateOfdmMode(), ns3::VhtPhy::CreateVhtMcs(), CarrierAggregationTestCase::DoRun(), LrWpanCcaTestCase::DoRun(), LrWpanDataIfsTestCase::DoRun(), LrWpanSlottedCsmacaTestCase::DoRun(), LteCqiGenerationDlPowerControlTestCase::DoRun(), LteCqiGenerationTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteHardFrTestCase::DoRun(), LteInterferenceTestCase::DoRun(), LteLinkAdaptationTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteStrictFrAreaTestCase::DoRun(), LteStrictFrTestCase::DoRun(), LteUeMeasurementsTestCase::DoRun(), LteUplinkClosedLoopPowerControlAbsoluteModeTestCase::DoRun(), LteUplinkClosedLoopPowerControlAccumulatedModeTestCase::DoRun(), LteUplinkOpenLoopPowerControlTestCase::DoRun(), MakeBoundCallbackTestCase::DoRun(), MakeCallbackTemplatesTestCase::DoRun(), WifiAcMappingTest::DoRun(), ZigbeeRreqRetryTestCase::DoRun(), ns3::MobilityHelper::EnableAscii(), ns3::UanHelper::EnableAscii(), ns3::WimaxHelper::EnableAsciiForConnection(), ns3::CsmaHelper::EnableAsciiInternal(), ns3::FdNetDeviceHelper::EnableAsciiInternal(), ns3::LrWpanHelper::EnableAsciiInternal(), ns3::PointToPointHelper::EnableAsciiInternal(), ns3::WifiPhyHelper::EnableAsciiInternal(), ns3::WimaxHelper::EnableAsciiInternal(), ns3::ClickInternetStackHelper::EnableAsciiIpv4Internal(), ns3::InternetStackHelper::EnableAsciiIpv4Internal(), ns3::InternetStackHelper::EnableAsciiIpv6Internal(), ns3::LteHelper::EnableDlMacTraces(), ns3::LteHelper::EnableDlPhyTraces(), ns3::LteHelper::EnableDlRxPhyTraces(), ns3::LteHelper::EnableDlTxPhyTraces(), ns3::LrWpanHelper::EnablePcapInternal(), ns3::WifiPhyHelper::EnablePcapInternal(), ns3::WimaxHelper::EnablePcapInternal(), ns3::LteHelper::EnableUlMacTraces(), ns3::LteHelper::EnableUlPhyTraces(), ns3::LteHelper::EnableUlRxPhyTraces(), ns3::LteHelper::EnableUlTxPhyTraces(), ns3::RadioBearerStatsConnector::EnsureConnected(), ns3::AsciiTraceHelper::HookDefaultDequeueSinkWithContext(), ns3::AsciiTraceHelper::HookDefaultDequeueSinkWithoutContext(), ns3::AsciiTraceHelper::HookDefaultDropSinkWithContext(), ns3::AsciiTraceHelper::HookDefaultDropSinkWithoutContext(), ns3::AsciiTraceHelper::HookDefaultEnqueueSinkWithContext(), ns3::AsciiTraceHelper::HookDefaultEnqueueSinkWithoutContext(), ns3::AsciiTraceHelper::HookDefaultReceiveSinkWithContext(), ns3::AsciiTraceHelper::HookDefaultReceiveSinkWithoutContext(), ns3::PcapHelper::HookDefaultSink(), ns3::SpectrumAnalyzerHelper::Install(), ScheduleFirstDctcpTraceConnection(), ScheduleFirstTcpCwndTraceConnection(), ScheduleFirstTcpRttTraceConnection(), ScheduleN0TcpCwndTraceConnection(), ScheduleN0TcpRttTraceConnection(), ScheduleN1TcpCwndTraceConnection(), ScheduleN1TcpRttTraceConnection(), ScheduleSecondDctcpTraceConnection(), ScheduleSecondTcpCwndTraceConnection(), ScheduleSecondTcpRttTraceConnection(), ns3::RadioBearerStatsConnector::StoreUeManagerPath(), TraceCwnd(), TraceCwnd(), TraceCwnd(), TraceCwnd(), TraceDroppingState(), TraceEveryDrop(), TraceQueueLength(), and TraceSojourn().

◆ MakeCallback()

template<typename T , typename OBJ , typename R , typename... Args, typename... BArgs>
auto ns3::MakeCallback ( R(T::* memPtr )(Args...),
OBJ objPtr,
BArgs... bargs )
Template Parameters
T[deduced] Type of the class having the member function.
OBJ[deduced] Type of the class instance.
R[deduced] Return type of the callback.
Args[deduced] Type list of any arguments to the member function.
BArgs[deduced] Type list of bound arguments.
Parameters
[in]memPtrClass method member pointer
[in]objPtrClass instance
[in]bargsBound arguments
Returns
A wrapper Callback

Build Callbacks for class method members which take varying numbers of arguments and potentially returning a value.

Definition at line 766 of file callback.h.