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(), and ndn::Name::size().
|
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::measurements::Measurements::Measurements(), nfd::Forwarder::onNewNextHop(), nfd::name_tree::operator<<(), setParent(), and nfd::name_tree::Hashtable::~Hashtable().
|
inline |
Definition at line 56 of file name-tree-entry.hpp.
References setParent(), and unsetParent().
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(), nfd::name_tree::PrefixMatchImpl::PrefixMatchImpl(), 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 getParent(), and 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(), and getParent().
|
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(), and nfd::pit::Pit::Pit().
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.
References setFibEntry().
Referenced by nfd::fib::Fib::Fib(), nfd::fib::Fib::findExactMatch(), nfd::fib::Fib::insert(), nfd::fib::nteHasFibEntry(), nfd::Forwarder::onNewNextHop(), and nfd::fib::Fib::removeNextHop().
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 getFibEntry(), and nfd::fib::Fib::insert().
|
inline |
Definition at line 119 of file name-tree-entry.hpp.
References getPitEntries().
Referenced by nfd::pit::nteHasPitEntries(), nfd::Forwarder::onNewNextHop(), and nfd::pit::Iterator::operator++().
|
inline |
Definition at line 125 of file name-tree-entry.hpp.
References erasePitEntry(), and insertPitEntry().
Referenced by nfd::strategy_choice::clearStrategyInfo(), hasPitEntries(), nfd::name_tree::NameTree::lookup(), nfd::Forwarder::onNewNextHop(), nfd::pit::Iterator::operator++(), nfd::pit::Iterator::operator->(), and nfd::pit::Pit::Pit().
void nfd::name_tree::Entry::insertPitEntry | ( | shared_ptr< pit::Entry > | pitEntry | ) |
Definition at line 88 of file name-tree-entry.cpp.
Referenced by getPitEntries(), and nfd::pit::Pit::Pit().
void nfd::name_tree::Entry::erasePitEntry | ( | pit::Entry * | pitEntry | ) |
Definition at line 98 of file name-tree-entry.cpp.
Referenced by nfd::pit::Pit::findAllDataMatches(), and getPitEntries().
|
inline |
Definition at line 137 of file name-tree-entry.hpp.
References setMeasurementsEntry().
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::measurements::Measurements::findExactMatch(), nfd::measurements::Measurements::getParent(), and nfd::measurements::Measurements::Measurements().
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().
Referenced by nfd::measurements::Measurements::extendLifetime(), getMeasurementsEntry(), and nfd::measurements::Measurements::Measurements().
|
inline |
Definition at line 146 of file name-tree-entry.hpp.
References setStrategyChoiceEntry().
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::strategy_choice::StrategyChoice::findEffectiveStrategyImpl(), nfd::strategy_choice::StrategyChoice::get(), nfd::strategy_choice::StrategyChoice::insert(), 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 getStrategyChoiceEntry(), nfd::strategy_choice::StrategyChoice::insert(), and nfd::strategy_choice::StrategyChoice::setDefaultStrategy().
|
inlinestatic |
Definition at line 161 of file name-tree-entry.hpp.
References getNode.
Referenced by nfd::name_tree::NameTree::getEntry().
Definition at line 107 of file name-tree-hashtable.cpp.
Referenced by get().