NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
strategy-choice-entry.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
27 #include "core/logger.hpp"
28 #include "fw/strategy.hpp"
29 
30 namespace nfd {
31 namespace strategy_choice {
32 
33 Entry::Entry(const Name& prefix)
34  : m_prefix(prefix)
35  , m_strategy(nullptr)
36 {
37 }
38 
39 const Name&
41 {
42  return m_strategy->getName();
43 }
44 
45 } // namespace strategy_choice
46 } // namespace nfd
const Name & getStrategyName() const
const Name & getName() const
a Name that represent the Strategy program
Definition: strategy.hpp:155
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
Name abstraction to represent an absolute name.
Definition: name.hpp:46