Topics | |
Callback Implementation | |
Callback implementation classes | |
Files | |
file | callback.cc |
ns3::CallbackValue implementation. | |
file | callback.h |
Declaration of the various callback functions. | |
Classes | |
class | ns3::Callback< R, UArgs > |
Callback template class. More... | |
Functions | |
template<typename R , typename... Args> | |
Callback< R, Args... > | ns3::MakeCallback (R(*fnPtr)(Args...)) |
template Callback< ObjectBase * > | ns3::MakeCallback< ObjectBase * > (ObjectBase *(*)()) |
Explicit instantiation for ObjectBase. | |
template<typename R , typename... Args> | |
Callback< R, Args... > | ns3::MakeNullCallback () |
Wrap functions, objects, and arguments into self contained callbacks.
Wrapped callbacks are at the heart of scheduling events in the simulator.
Callback< R, Args... > ns3::MakeCallback | ( | R(* | fnPtr )(Args...) | ) |
R | [deduced] Return type of the callback function.. |
Args | [deduced] Type list of any arguments to the member function. |
[in] | fnPtr | Function pointer |
Build Callbacks for functions which take varying numbers of arguments and potentially returning a value.
Definition at line 710 of file callback.h.
template Callback< ObjectBase * > ns3::MakeCallback< ObjectBase * > | ( | ObjectBase * | *)( | ) |
Callback< R, Args... > ns3::MakeNullCallback | ( | ) |
R | [deduced] Return type of the callback function.. |
Args | [deduced] Type list of any arguments to the member function. |
Build null Callbacks which take no arguments, for varying number of template arguments, and potentially returning a value.
Definition at line 727 of file callback.h.
Referenced by ns3::TcpSocketBase::TcpSocketBase(), ns3::TcpTxBuffer::TcpTxBuffer(), ns3::ThreeGppHttpServerTxBuffer::CloseAllSockets(), ns3::ThreeGppHttpServerTxBuffer::CloseSocket(), ns3::WifiModeFactory::CreateWifiMode(), ns3::TcpSocketBase::DeallocateEndPoint(), ns3::TrafficControlLayer::DeleteRootQueueDiscOnDevice(), ns3::AlohaNoackNetDevice::DoDispose(), ns3::EpcPgwApplication::DoDispose(), ns3::EpcSgwApplication::DoDispose(), ns3::HalfDuplexIdealPhy::DoDispose(), ns3::lrwpan::LrWpanCsmaCa::DoDispose(), ns3::lrwpan::LrWpanMac::DoDispose(), ns3::lrwpan::LrWpanPhy::DoDispose(), ns3::LteSpectrumPhy::DoDispose(), ns3::MpiReceiver::DoDispose(), ns3::NoBackhaulEpcHelper::DoDispose(), ns3::Socket::DoDispose(), CallbackValueTestCase::DoRun(), DualStackTestCase::DoRun(), LrWpanCcaTestCase::DoRun(), ns3::TcpGeneralTest::DoRun(), TcpEndPointBug2211Test::DoRun(), TcpSynConnectionFailedTest::DoRun(), ns3::dsr::DsrRouting::GetDownTarget6(), ns3::WifiModeFactory::GetFactory(), ns3::DhcpClient::LinkStateHandler(), ns3::ThreeGppHttpClient::NormalCloseCallback(), ns3::ThreeGppHttpServerTxBuffer::RemoveSocket(), ns3::FrameExchangeManager::ResetPhy(), ns3::Ipv4ListRouting::RouteInput(), ns3::Ipv6ListRouting::RouteInput(), TcpTestCase::SetupDefaultSim(), TcpTestCase::SetupDefaultSim6(), EpsBearerTagUdpClient::StartApplication(), ns3::PacketSink::StartApplication(), ns3::PacketSocketClient::StartApplication(), ns3::UdpClient::StartApplication(), ns3::UdpTraceClient::StartApplication(), ns3::DhcpClient::StopApplication(), ns3::DhcpServer::StopApplication(), ns3::PacketSink::StopApplication(), ns3::PacketSocketServer::StopApplication(), ns3::Radvd::StopApplication(), ns3::ThreeGppHttpClient::StopApplication(), ns3::ThreeGppHttpServer::StopApplication(), ns3::UdpEchoClient::StopApplication(), ns3::UdpEchoServer::StopApplication(), ns3::UdpServer::StopApplication(), and Receiver::StopApplication().