NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
strategy-choice-entry.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_TABLE_STRATEGY_CHOICE_ENTRY_HPP
27
#define NFD_DAEMON_TABLE_STRATEGY_CHOICE_ENTRY_HPP
28
29
#include "
common.hpp
"
30
31
namespace
nfd {
32
33
class
NameTree
;
34
namespace
name_tree {
35
class
Entry;
36
}
37
namespace
fw {
38
class
Strategy
;
39
}
40
41
namespace
strategy_choice {
42
45
class
Entry
: noncopyable
46
{
47
public
:
48
Entry
(
const
Name
& prefix);
49
50
const
Name
&
51
getPrefix
()
const
;
52
53
const
Name
&
54
getStrategyName
()
const
;
55
56
fw::Strategy
&
57
getStrategy
()
const
;
58
59
void
60
setStrategy
(
fw::Strategy
& strategy);
61
62
private
:
63
Name
m_prefix;
64
fw::Strategy
* m_strategy;
65
66
shared_ptr<name_tree::Entry> m_nameTreeEntry;
67
friend
class
nfd::NameTree
;
68
friend
class
nfd::name_tree::Entry
;
69
};
70
71
72
inline
const
Name
&
73
Entry::getPrefix
()
const
74
{
75
return
m_prefix;
76
}
77
78
inline
fw::Strategy
&
79
Entry::getStrategy
()
const
80
{
81
BOOST_ASSERT(m_strategy !=
nullptr
);
82
return
*m_strategy;
83
}
84
85
inline
void
86
Entry::setStrategy
(
fw::Strategy
& strategy)
87
{
88
m_strategy = &strategy;
89
}
90
91
}
// namespace strategy_choice
92
}
// namespace nfd
93
94
#endif // NFD_DAEMON_TABLE_STRATEGY_CHOICE_ENTRY_HPP
nfd::strategy_choice::Entry::setStrategy
void setStrategy(fw::Strategy &strategy)
Definition:
strategy-choice-entry.hpp:86
nfd::strategy_choice::Entry::getStrategyName
const Name & getStrategyName() const
Definition:
strategy-choice-entry.cpp:40
nfd::strategy_choice::Entry::getPrefix
const Name & getPrefix() const
Definition:
strategy-choice-entry.hpp:73
nfd::strategy_choice::Entry::Entry
Entry(const Name &prefix)
Definition:
strategy-choice-entry.cpp:33
nfd::strategy_choice::Entry::getStrategy
fw::Strategy & getStrategy() const
Definition:
strategy-choice-entry.hpp:79
common.hpp
nfd::fw::Strategy
Strategy
Definition:
strategy.cpp:33
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
nfd::NameTree
Class Name Tree.
Definition:
name-tree.hpp:79
nfd::strategy_choice::Entry
represents a Strategy Choice entry
Definition:
strategy-choice-entry.hpp:45
nfd::fw::Strategy
represents a forwarding strategy
Definition:
strategy.hpp:37
nfd::NameTree
NameTree
Definition:
name-tree.cpp:36
nfd::name_tree::Entry
Name Tree Entry Class.
Definition:
name-tree-entry.hpp:65
ndnSIM
NFD
daemon
table
strategy-choice-entry.hpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7