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)
const std::vector< shared_ptr< pit::Entry > > & getPitEntries() const
fib::Entry * getFibEntry() const
void erasePitEntry(pit::Entry *pitEntry)
Entry(const Name &prefix, Node *node)
const std::vector< Entry * > & getChildren() const
void setParent(Entry &entry)
set parent of this entry
void setMeasurementsEntry(unique_ptr< measurements::Entry > measurementsEntry)
represents a Measurements entry
measurements::Entry * getMeasurementsEntry() const
bool hasTableEntries() const
ENTRY *(Entry::*)() const Getter
a function pointer to the getter on Entry class that returns ENTRY
Copyright (c) 2011-2015 Regents of the University of California.
Represents an absolute name.
represents a Strategy Choice entry
const ENTRY & operator()(const Entry &nte) const
bool hasPitEntries() const
void unsetParent()
unset parent of this entry
strategy_choice::Entry * getStrategyChoiceEntry() const
Entry * getParent() const
GetTableEntry(Getter getter=nullptr)
a functor to get a table entry from a name tree entry
const Name & getName() const
void setFibEntry(unique_ptr< fib::Entry > fibEntry)
void setStrategyChoiceEntry(unique_ptr< strategy_choice::Entry > strategyChoiceEntry)
an entry in the name tree