NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
strategy-choice-entry.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
strategy-choice-entry.hpp
"
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_nameTreeEntry(nullptr)
36
{
37
}
38
39
Entry::~Entry
() =
default
;
40
41
const
Name
&
42
Entry::getStrategyInstanceName
()
const
43
{
44
return
this->
getStrategy
().
getInstanceName
();
45
}
46
47
void
48
Entry::setStrategy
(unique_ptr<fw::Strategy> strategy)
49
{
50
m_strategy = std::move(strategy);
51
}
52
53
}
// namespace strategy_choice
54
}
// namespace nfd
nfd::strategy_choice::Entry::getStrategyInstanceName
const Name & getStrategyInstanceName() const
Definition:
strategy-choice-entry.cpp:42
nfd::strategy_choice::Entry::Entry
Entry(const Name &prefix)
Definition:
strategy-choice-entry.cpp:33
nfd::fw::Strategy::getInstanceName
const Name & getInstanceName() const
Definition:
strategy.hpp:110
nfd::strategy_choice::Entry::getStrategy
fw::Strategy & getStrategy() const
Definition:
strategy-choice-entry.hpp:68
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::Name
Represents an absolute name.
Definition:
name.hpp:42
strategy.hpp
strategy-choice-entry.hpp
nfd::strategy_choice::Entry::setStrategy
void setStrategy(unique_ptr< fw::Strategy > strategy)
Definition:
strategy-choice-entry.cpp:48
nfd::strategy_choice::Entry::~Entry
~Entry()
logger.hpp
ndnSIM
NFD
daemon
table
strategy-choice-entry.cpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11