26 #ifndef NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 27 #define NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP 88 const std::vector<Entry*>&
113 return m_fibEntry.get();
125 const std::vector<shared_ptr<pit::Entry>>&
140 return m_measurementsEntry.get();
149 return m_strategyChoiceEntry.get();
160 template<
typename ENTRY>
162 get(
const ENTRY& tableEntry)
164 return tableEntry.m_nameTreeEntry;
171 std::vector<Entry*> m_children;
173 unique_ptr<fib::Entry> m_fibEntry;
174 std::vector<shared_ptr<pit::Entry>> m_pitEntries;
175 unique_ptr<measurements::Entry> m_measurementsEntry;
176 unique_ptr<strategy_choice::Entry> m_strategyChoiceEntry;
184 template<
typename ENTRY>
204 return *(nte.*m_getter)();
214 #endif // NFD_DAEMON_TABLE_NAME_TREE_ENTRY_HPP void insertPitEntry(shared_ptr< pit::Entry > pitEntry)
friend Node * getNode(const Entry &entry)
bool hasTableEntries() const
const ENTRY & operator()(const Entry &nte) const
const std::vector< shared_ptr< pit::Entry > > & getPitEntries() const
void erasePitEntry(pit::Entry *pitEntry)
const Name & getName() const
Entry(const Name &prefix, Node *node)
bool hasPitEntries() const
void setParent(Entry &entry)
set parent of this entry
Entry * getParent() const
strategy_choice::Entry * getStrategyChoiceEntry() const
void setMeasurementsEntry(unique_ptr< measurements::Entry > measurementsEntry)
represents a Measurements entry
ENTRY *(Entry::*)() const Getter
a function pointer to the getter on Entry class that returns ENTRY
fib::Entry * getFibEntry() const
Copyright (c) 2011-2015 Regents of the University of California.
Represents an absolute name.
represents a Strategy Choice entry
const std::vector< Entry * > & getChildren() const
measurements::Entry * getMeasurementsEntry() const
void unsetParent()
unset parent of this entry
GetTableEntry(Getter getter=nullptr)
a functor to get a table entry from a name tree entry
void setFibEntry(unique_ptr< fib::Entry > fibEntry)
void setStrategyChoiceEntry(unique_ptr< strategy_choice::Entry > strategyChoiceEntry)
an entry in the name tree