NFD - Named Data Networking Forwarding Daemon 0.5.0 documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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 "
core/common.hpp
"
30
31
namespace
nfd
{
32
33
namespace
fw {
34
class
Strategy;
35
}
// namespace fw
36
37
namespace
name_tree {
38
class
Entry;
39
}
// namespace name_tree
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
return
m_prefix;
54
}
55
56
const
Name&
57
getStrategyName
()
const
;
58
59
fw::Strategy
&
60
getStrategy
()
const
61
{
62
BOOST_ASSERT(m_strategy !=
nullptr
);
63
return
*m_strategy;
64
}
65
66
void
67
setStrategy
(
fw::Strategy
& strategy)
68
{
69
m_strategy = &strategy;
70
}
71
72
private
:
73
Name m_prefix;
74
fw::Strategy
* m_strategy;
75
76
name_tree::Entry
* m_nameTreeEntry;
77
78
friend
class
name_tree::Entry
;
79
};
80
81
}
// namespace strategy_choice
82
}
// namespace nfd
83
84
#endif // NFD_DAEMON_TABLE_STRATEGY_CHOICE_ENTRY_HPP
nfd::strategy_choice::Entry::getStrategy
fw::Strategy & getStrategy() const
Definition:
strategy-choice-entry.hpp:60
nfd::strategy_choice::Entry::setStrategy
void setStrategy(fw::Strategy &strategy)
Definition:
strategy-choice-entry.hpp:67
common.hpp
nfd
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
nfd::strategy_choice::Entry::Entry
Entry(const Name &prefix)
Definition:
strategy-choice-entry.cpp:33
nfd::strategy_choice::Entry::getStrategyName
const Name & getStrategyName() const
Definition:
strategy-choice-entry.cpp:41
nfd::name_tree::Entry
an entry in the name tree
Definition:
name-tree-entry.hpp:41
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:38
nfd::strategy_choice::Entry::getPrefix
const Name & getPrefix() const
Definition:
strategy-choice-entry.hpp:51
daemon
table
strategy-choice-entry.hpp
Generated on Tue Oct 4 2016 19:45:21 for NFD - Named Data Networking Forwarding Daemon by
1.8.9.1