An entry in the name tree. More...
#include <name-tree-entry.hpp>
Public Member Functions | |
Entry (const Name &prefix, Node *node) | |
const Name & | getName () const |
Entry * | getParent () const |
void | setParent (Entry &entry) |
Set parent of this entry. More... | |
void | unsetParent () |
Unset parent of this entry. More... | |
bool | hasChildren () const |
Check whether this entry has any children. More... | |
const std::vector< Entry * > & | getChildren () const |
bool | isEmpty () const |
bool | hasTableEntries () const |
fib::Entry * | getFibEntry () const |
void | setFibEntry (unique_ptr< fib::Entry > fibEntry) |
bool | hasPitEntries () const |
const std::vector< shared_ptr< pit::Entry > > & | getPitEntries () const |
void | insertPitEntry (shared_ptr< pit::Entry > pitEntry) |
void | erasePitEntry (pit::Entry *pitEntry) |
measurements::Entry * | getMeasurementsEntry () const |
void | setMeasurementsEntry (unique_ptr< measurements::Entry > measurementsEntry) |
strategy_choice::Entry * | getStrategyChoiceEntry () const |
void | setStrategyChoiceEntry (unique_ptr< strategy_choice::Entry > strategyChoiceEntry) |
Static Public Member Functions | |
template<typename ENTRY > | |
static Entry * | get (const ENTRY &tableEntry) |
Friends | |
Node * | getNode (const Entry &entry) |
An entry in the name tree.
Definition at line 41 of file name-tree-entry.hpp.
Definition at line 32 of file name-tree-entry.cpp.
References nfd::name_tree::NameTree::getMaxDepth().
|
inline |
Definition at line 47 of file name-tree-entry.hpp.
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::name_tree::Hashtable::erase(), nfd::name_tree::NameTree::eraseIfEmpty(), nfd::name_tree::NameTree::findLongestPrefixMatch(), nfd::name_tree::operator<<(), and setParent().
|
inline |
Definition at line 56 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::PartialEnumerationImpl::advance(), nfd::name_tree::Hashtable::erase(), nfd::name_tree::NameTree::eraseIfEmpty(), nfd::name_tree::NameTree::findLongestPrefixMatch(), nfd::measurements::Measurements::getParent(), setParent(), and unsetParent().
void nfd::name_tree::Entry::setParent | ( | Entry & | entry | ) |
Set parent of this entry.
entry | entry of getName().getPrefix(-1) |
Definition at line 41 of file name-tree-entry.cpp.
References getName(), getParent(), and ndn::Name::getPrefix().
Referenced by nfd::name_tree::NameTree::lookup().
void nfd::name_tree::Entry::unsetParent | ( | ) |
Unset parent of this entry.
Definition at line 52 of file name-tree-entry.cpp.
References getParent().
Referenced by nfd::name_tree::NameTree::eraseIfEmpty().
|
inline |
Check whether this entry has any children.
Definition at line 80 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::PartialEnumerationImpl::advance(), and isEmpty().
|
inline |
Definition at line 88 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::PartialEnumerationImpl::advance().
|
inline |
true | this entry has no children and no table entries |
false | this entry has child or attached table entry |
Definition at line 97 of file name-tree-entry.hpp.
References hasChildren(), and hasTableEntries().
Referenced by nfd::name_tree::NameTree::eraseIfEmpty().
bool nfd::name_tree::Entry::hasTableEntries | ( | ) | const |
true | at least one table entries is attached |
false | no table entry is attached |
Definition at line 64 of file name-tree-entry.cpp.
Referenced by isEmpty().
|
inline |
Definition at line 110 of file name-tree-entry.hpp.
Referenced by nfd::fib::Fib::findExactMatch(), nfd::fib::Fib::insert(), nfd::name_tree::NameTree::lookup(), and nfd::fib::nteHasFibEntry().
void nfd::name_tree::Entry::setFibEntry | ( | unique_ptr< fib::Entry > | fibEntry | ) |
Definition at line 73 of file name-tree-entry.cpp.
References nonstd::optional_lite::std11::move().
Referenced by nfd::fib::Fib::insert().
|
inline |
Definition at line 119 of file name-tree-entry.hpp.
References getPitEntries().
Referenced by nfd::pit::nteHasPitEntries(), and nfd::pit::Iterator::operator++().
|
inline |
Definition at line 125 of file name-tree-entry.hpp.
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::pit::Pit::findAllDataMatches(), hasPitEntries(), nfd::name_tree::NameTree::lookup(), nfd::pit::Iterator::operator++(), and nfd::pit::Iterator::operator->().
void nfd::name_tree::Entry::insertPitEntry | ( | shared_ptr< pit::Entry > | pitEntry | ) |
Definition at line 88 of file name-tree-entry.cpp.
void nfd::name_tree::Entry::erasePitEntry | ( | pit::Entry * | pitEntry | ) |
Definition at line 98 of file name-tree-entry.cpp.
|
inline |
Definition at line 137 of file name-tree-entry.hpp.
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::measurements::Measurements::findExactMatch(), and nfd::name_tree::NameTree::lookup().
void nfd::name_tree::Entry::setMeasurementsEntry | ( | unique_ptr< measurements::Entry > | measurementsEntry | ) |
Definition at line 113 of file name-tree-entry.cpp.
References nonstd::optional_lite::std11::move().
|
inline |
Definition at line 146 of file name-tree-entry.hpp.
Referenced by nfd::strategy_choice::StrategyChoice::erase(), nfd::strategy_choice::StrategyChoice::findEffectiveStrategyImpl(), nfd::strategy_choice::StrategyChoice::get(), nfd::strategy_choice::StrategyChoice::insert(), nfd::name_tree::NameTree::lookup(), and nfd::strategy_choice::nteHasStrategyChoiceEntry().
void nfd::name_tree::Entry::setStrategyChoiceEntry | ( | unique_ptr< strategy_choice::Entry > | strategyChoiceEntry | ) |
Definition at line 128 of file name-tree-entry.cpp.
References nonstd::optional_lite::std11::move().
Referenced by nfd::strategy_choice::StrategyChoice::erase(), nfd::strategy_choice::StrategyChoice::insert(), and nfd::strategy_choice::StrategyChoice::setDefaultStrategy().
|
inlinestatic |
Definition at line 161 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::NameTree::getEntry().
Definition at line 107 of file name-tree-hashtable.cpp.