strategy.hpp File Reference
#include "forwarder.hpp"
#include "table/measurements-accessor.hpp"
#include <boost/lexical_cast/try_lexical_convert.hpp>
#include <functional>
#include <map>
#include <set>
+ Include dependency graph for strategy.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nfd::fw::Strategy::ParsedInstanceName
 
class  nfd::fw::Strategy
 Base class of all forwarding strategies. More...
 
class  nfd::fw::StrategyParameters
 

Namespaces

 nfd
 -status-http-server
 
 nfd::fw
 

Macros

#define NFD_LOG_DATA_FROM(data, ingress, msg)
 Logs the reception of data on ingress, followed by msg, at DEBUG level. More...
 
#define NFD_LOG_INTEREST_FROM(interest, ingress, msg)
 Logs the reception of interest on ingress, followed by msg, at DEBUG level. More...
 
#define NFD_LOG_NACK_FROM(nack, ingress, msg)
 Logs the reception of nack on ingress, followed by msg, at DEBUG level. More...
 
#define NFD_REGISTER_STRATEGY(S)
 Registers a forwarding strategy. More...
 

Macro Definition Documentation

◆ NFD_LOG_DATA_FROM

#define NFD_LOG_DATA_FROM (   data,
  ingress,
  msg 
)
Value:
NFD_LOG_DEBUG("data=" << (data).getName() << \
" from=" << (ingress) << \
' ' << msg)
#define NFD_LOG_DEBUG
Definition: logger.hpp:38

Logs the reception of data on ingress, followed by msg, at DEBUG level.

Definition at line 549 of file strategy.hpp.

◆ NFD_LOG_INTEREST_FROM

#define NFD_LOG_INTEREST_FROM (   interest,
  ingress,
  msg 
)
Value:
NFD_LOG_DEBUG("interest=" << (interest).getName() << \
" nonce=" << (interest).getNonce() << \
" from=" << (ingress) << \
' ' << msg)

Logs the reception of interest on ingress, followed by msg, at DEBUG level.

Definition at line 542 of file strategy.hpp.

◆ NFD_LOG_NACK_FROM

#define NFD_LOG_NACK_FROM (   nack,
  ingress,
  msg 
)
Value:
NFD_LOG_DEBUG("nack=" << (nack).getInterest().getName() << \
" nonce=" << (nack).getInterest().getNonce() << \
" reason=" << (nack).getReason() << \
" from=" << (ingress) << \
' ' << msg)

Logs the reception of nack on ingress, followed by msg, at DEBUG level.

Definition at line 555 of file strategy.hpp.

◆ NFD_REGISTER_STRATEGY

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

Registers a forwarding strategy.

This macro should appear once in the .cpp of each strategy.

Definition at line 531 of file strategy.hpp.