An application that can be created using the supplied callback. More...
#include <ndn-app-helper.hpp>
Public Types | |
typedef std::function< shared_ptr< void >)> | FactoryCallback |
Public Member Functions | |
FactoryCallbackApp (const FactoryCallback &factory) | |
Static Public Member Functions | |
static ApplicationContainer | Install (Ptr< Node > node, const FactoryCallback &factory) |
Protected Member Functions | |
virtual void | StartApplication () |
virtual void | StopApplication () |
An application that can be created using the supplied callback.
Example:
class SomeApp { public: SomeApp(size_t initParameter); ... }; FactoryCallbackApp::Install(node, [] () -> shared_ptr<void> { return make_shared<SomeApp>(42); }) .Start(Seconds(1.01));
Definition at line 125 of file ndn-app-helper.hpp.
typedef std::function<shared_ptr<void>)> ns3::ndn::FactoryCallbackApp::FactoryCallback |
Definition at line 128 of file ndn-app-helper.hpp.
ns3::ndn::FactoryCallbackApp::FactoryCallbackApp | ( | const FactoryCallback & | factory | ) |
Definition at line 107 of file ndn-app-helper.cpp.
|
static |
Definition at line 113 of file ndn-app-helper.cpp.
|
protectedvirtual |
Definition at line 123 of file ndn-app-helper.cpp.
|
protectedvirtual |
Definition at line 129 of file ndn-app-helper.cpp.