26 #ifndef NFD_DAEMON_FW_STRATEGY_REGISTRY_HPP
27 #define NFD_DAEMON_FW_STRATEGY_REGISTRY_HPP
58 [] (
Forwarder& forwarder) {
return make_unique<S>(ref(forwarder)); });
65 #define NFD_REGISTER_STRATEGY(StrategyType) \
66 static class NfdAuto ## StrategyType ## StrategyRegistrationClass \
69 NfdAuto ## StrategyType ## StrategyRegistrationClass() \
71 ::nfd::fw::registerStrategy<StrategyType>(); \
73 } g_nfdAuto ## StrategyType ## StrategyRegistrationVariable
78 #endif // NFD_DAEMON_FW_STRATEGY_REGISTRY_HPP
unique_ptr< Strategy > makeDefaultStrategy(Forwarder &forwarder)
void registerStrategyImpl(const Name &strategyName, const StrategyCreateFunc &createFunc)
void installStrategies(Forwarder &forwarder)
std::function< unique_ptr< Strategy >Forwarder &)> StrategyCreateFunc
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void registerStrategy()
registers a strategy to be installed later