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 |
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 31 of file name-tree-entry.cpp.
|
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::NameTree::lookup(), nfd::measurements::Measurements::Measurements(), 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 40 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 |
true | this entry has at least one child |
false | this entry has no children |
Definition at line 81 of file name-tree-entry.hpp.
References getChildren().
Referenced by nfd::name_tree::PartialEnumerationImpl::advance(), and isEmpty().
|
inline |
Definition at line 89 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::PartialEnumerationImpl::advance(), and hasChildren().
|
inline |
true | this entry has no children and no table entries |
false | this entry has child or attached table entry |
Definition at line 98 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 111 of file name-tree-entry.hpp.
References setFibEntry().
Referenced by nfd::fib::Fib::Fib(), nfd::fib::Fib::findExactMatch(), nfd::fib::Fib::insert(), nfd::name_tree::NameTree::lookup(), nfd::fib::nteHasFibEntry(), 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.
Referenced by getFibEntry(), and nfd::fib::Fib::insert().
|
inline |
Definition at line 120 of file name-tree-entry.hpp.
References getPitEntries().
Referenced by nfd::pit::nteHasPitEntries(), and nfd::pit::Iterator::operator++().
|
inline |
Definition at line 126 of file name-tree-entry.hpp.
References erasePitEntry(), and insertPitEntry().
Referenced by nfd::strategy_choice::clearStrategyInfo(), hasPitEntries(), nfd::name_tree::NameTree::lookup(), 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 138 of file name-tree-entry.hpp.
References setMeasurementsEntry().
Referenced by nfd::strategy_choice::clearStrategyInfo(), nfd::measurements::Measurements::findExactMatch(), nfd::measurements::Measurements::getParent(), nfd::name_tree::NameTree::lookup(), 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.
Referenced by nfd::measurements::Measurements::extendLifetime(), getMeasurementsEntry(), and nfd::measurements::Measurements::Measurements().
|
inline |
Definition at line 147 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(), 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.
Referenced by nfd::strategy_choice::StrategyChoice::findEffectiveStrategy(), getStrategyChoiceEntry(), and nfd::strategy_choice::StrategyChoice::insert().
|
inlinestatic |
Definition at line 162 of file name-tree-entry.hpp.
References getNode.
Referenced by nfd::name_tree::NameTree::getEntry().
Definition at line 105 of file name-tree-hashtable.cpp.
Referenced by get().