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::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 40 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 |
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().
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.
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.
Referenced by 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.
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 138 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.
|
inline |
Definition at line 147 of file name-tree-entry.hpp.
Referenced by 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::insert(), and nfd::strategy_choice::StrategyChoice::setDefaultStrategy().
|
inlinestatic |
Definition at line 162 of file name-tree-entry.hpp.
Referenced by nfd::name_tree::NameTree::getEntry().
Definition at line 107 of file name-tree-hashtable.cpp.