26 #ifndef NFD_DAEMON_TABLE_NAME_TREE_ITERATOR_HPP 27 #define NFD_DAEMON_TABLE_NAME_TREE_ITERATOR_HPP 68 class EnumerationImpl;
82 BOOST_ASSERT(m_impl !=
nullptr);
89 BOOST_ASSERT(m_impl !=
nullptr);
111 shared_ptr<EnumerationImpl> m_impl;
115 const Entry* m_entry;
206 typedef boost::iterator_range<Iterator>
Range;
211 #endif // NFD_DAEMON_TABLE_NAME_TREE_ITERATOR_HPP
EnumerationImpl(const NameTree &nt)
bool operator==(const Iterator &other) const
const Entry * operator->() const
full enumeration implementation
function< std::pair< bool, bool >const Entry &entry)> EntrySubTreeSelector
a predicate to accept or reject an Entry and its children
void advance(Iterator &i) override
an EntrySelector that accepts every Entry
bool operator()(const Entry &entry) const
an EntrySubTreeSelector that accepts every Entry and its children
const Entry & operator*() const
FullEnumerationImpl(const NameTree &nt, const EntrySelector &pred)
std::ostream & operator<<(std::ostream &os, const Iterator &i)
std::pair< bool, bool > operator()(const Entry &entry) const
a hashtable for fast exact name lookup
bool operator!=(const Iterator &other) const
friend std::ostream & operator<<(std::ostream &, const Iterator &)
Table::const_iterator iterator
partial enumeration implementation
Copyright (c) 2011-2015 Regents of the University of California.
partial enumeration implementation
function< bool(const Entry &entry)> EntrySelector
a predicate to accept or reject an Entry in find operations
PrefixMatchImpl(const NameTree &nt, const EntrySelector &pred)
a common index structure for FIB, PIT, StrategyChoice, and Measurements
virtual ~EnumerationImpl()=default
boost::iterator_range< Iterator > Range
a Forward Range of name tree entries
virtual void advance(Iterator &i)=0
void advance(Iterator &i) override
enumeration operation implementation
an entry in the name tree
PartialEnumerationImpl(const NameTree &nt, const EntrySubTreeSelector &pred)