26 #ifndef NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 27 #define NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 65 class Entry :
public enable_shared_from_this<Entry>, noncopyable
83 setParent(shared_ptr<Entry> parent);
88 std::vector<shared_ptr<Entry> >&
99 setFibEntry(shared_ptr<fib::Entry> fibEntry);
101 shared_ptr<fib::Entry>
105 insertPitEntry(shared_ptr<pit::Entry> pitEntry);
108 erasePitEntry(shared_ptr<pit::Entry> pitEntry);
111 hasPitEntries()
const;
113 const std::vector<shared_ptr<pit::Entry> >&
114 getPitEntries()
const;
117 setMeasurementsEntry(shared_ptr<measurements::Entry> measurementsEntry);
119 shared_ptr<measurements::Entry>
120 getMeasurementsEntry()
const;
123 setStrategyChoiceEntry(shared_ptr<strategy_choice::Entry> strategyChoiceEntry);
125 shared_ptr<strategy_choice::Entry>
126 getStrategyChoiceEntry()
const;
134 shared_ptr<Entry> m_parent;
135 std::vector<shared_ptr<Entry> > m_children;
136 shared_ptr<fib::Entry> m_fibEntry;
137 std::vector<shared_ptr<pit::Entry> > m_pitEntries;
138 shared_ptr<measurements::Entry> m_measurementsEntry;
139 shared_ptr<strategy_choice::Entry> m_strategyChoiceEntry;
166 inline shared_ptr<Entry>
178 inline std::vector<shared_ptr<name_tree::Entry> >&
187 return !m_children.empty();
190 inline shared_ptr<fib::Entry>
199 return !m_pitEntries.empty();
202 inline const std::vector<shared_ptr<pit::Entry> >&
208 inline shared_ptr<measurements::Entry>
211 return m_measurementsEntry;
214 inline shared_ptr<strategy_choice::Entry>
217 return m_strategyChoiceEntry;
223 #endif // NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP
shared_ptr< Entry > m_entry
const std::vector< shared_ptr< pit::Entry > > & getPitEntries() const
shared_ptr< Entry > getParent() const
void setParent(shared_ptr< Entry > parent)
void setHash(size_t hash)
bool hasPitEntries() const
Copyright (c) 2011-2015 Regents of the University of California.
shared_ptr< strategy_choice::Entry > getStrategyChoiceEntry() const
Name abstraction to represent an absolute name.
const Name & getPrefix() const
std::vector< shared_ptr< Entry > > & getChildren()
shared_ptr< measurements::Entry > getMeasurementsEntry() const
shared_ptr< fib::Entry > getFibEntry() const