NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
strategy-registry.hpp File Reference
#include "common.hpp"
Include dependency graph for strategy-registry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nfd
 Copyright (c) 2011-2015 Regents of the University of California.
 
 nfd::fw
 

Macros

#define NFD_REGISTER_STRATEGY(StrategyType)
 registers a built-in strategy More...
 

Typedefs

typedef std::function< shared_ptr< Strategy >Forwarder &)> nfd::fw::StrategyCreateFunc
 

Functions

shared_ptr< Strategy > nfd::fw::makeDefaultStrategy (Forwarder &forwarder)
 
void nfd::fw::installStrategies (Forwarder &forwarder)
 
void nfd::fw::registerStrategyImpl (const Name &strategyName, const StrategyCreateFunc &createFunc)
 
template<typename S >
void nfd::fw::registerStrategy ()
 registers a strategy to be installed later More...
 

Macro Definition Documentation

◆ NFD_REGISTER_STRATEGY

#define NFD_REGISTER_STRATEGY (   StrategyType)
Value:
static class NfdAuto ## StrategyType ## StrategyRegistrationClass \
{ \
public: \
NfdAuto ## StrategyType ## StrategyRegistrationClass() \
{ \
::nfd::fw::registerStrategy<StrategyType>(); \
} \
} g_nfdAuto ## StrategyType ## StrategyRegistrationVariable

registers a built-in strategy

This macro should appear once in .cpp of each built-in strategy.

Definition at line 65 of file strategy-registry.hpp.