26 #ifndef NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 27 #define NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 82 return !m_children.empty();
87 const std::vector<Entry*>&
112 return m_fibEntry.get();
124 const std::vector<shared_ptr<pit::Entry>>&
139 return m_measurementsEntry.get();
148 return m_strategyChoiceEntry.get();
159 template<
typename ENTRY>
161 get(
const ENTRY& tableEntry)
163 return tableEntry.m_nameTreeEntry;
169 Entry* m_parent =
nullptr;
170 std::vector<Entry*> m_children;
172 unique_ptr<fib::Entry> m_fibEntry;
173 std::vector<shared_ptr<pit::Entry>> m_pitEntries;
174 unique_ptr<measurements::Entry> m_measurementsEntry;
175 unique_ptr<strategy_choice::Entry> m_strategyChoiceEntry;
183 template<
typename ENTRY>
203 return *(nte.*m_getter)();
213 #endif // NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP void unsetParent()
Unset parent of this entry.
const std::vector< Entry * > & getChildren() const
Represents a Measurements entry.
void erasePitEntry(pit::Entry *pitEntry)
void setMeasurementsEntry(unique_ptr< measurements::Entry > measurementsEntry)
bool hasChildren() const
Check whether this entry has any children.
ENTRY *(Entry::*)() const Getter
A function pointer to the getter on Entry class that returns ENTRY.
void setParent(Entry &entry)
Set parent of this entry.
strategy_choice::Entry * getStrategyChoiceEntry() const
const std::vector< shared_ptr< pit::Entry > > & getPitEntries() const
Entry(const Name &prefix, Node *node)
const ENTRY & operator()(const Entry &nte) const
friend Node * getNode(const Entry &entry)
Entry * getParent() const
void setStrategyChoiceEntry(unique_ptr< strategy_choice::Entry > strategyChoiceEntry)
fib::Entry * getFibEntry() const
bool hasPitEntries() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void setFibEntry(unique_ptr< fib::Entry > fibEntry)
bool hasTableEntries() const
An entry in the name tree.
Represents a Strategy Choice entry.
measurements::Entry * getMeasurementsEntry() const
const Name & getName() const
GetTableEntry(Getter getter=nullptr)
void insertPitEntry(shared_ptr< pit::Entry > pitEntry)
a functor to get a table entry from a name tree entry