represents an item in NFD RIB dataset More...
#include <rib-entry.hpp>
Classes | |
class | Error |
Public Member Functions | |
RibEntry () | |
RibEntry (const Block &block) | |
const Name & | getName () const |
RibEntry & | setName (const Name &prefix) |
const std::vector< Route > & | getRoutes () const |
template<typename InputIt > | |
RibEntry & | setRoutes (InputIt first, InputIt last) |
RibEntry & | addRoute (const Route &route) |
RibEntry & | clearRoutes () |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &block) const |
const Block & | wireEncode () const |
void | wireDecode (const Block &block) |
represents an item in NFD RIB dataset
A RIB entry contains one or more routes for a name prefix
Definition at line 153 of file rib-entry.hpp.
|
default |
Referenced by ndn::nfd::operator<<().
|
explicit |
Definition at line 225 of file rib-entry.cpp.
References ndn::nfd::Route::wireDecode().
|
inline |
Definition at line 168 of file rib-entry.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
Definition at line 231 of file rib-entry.cpp.
References ndn::Block::reset().
Referenced by nfd::RibManager::enableLocalFields().
|
inline |
Definition at line 177 of file rib-entry.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
|
inline |
Definition at line 184 of file rib-entry.hpp.
References ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator==(), ndn::nfd::Route::wireDecode(), and ndn::nfd::Route::wireEncode().
Definition at line 239 of file rib-entry.cpp.
References ndn::Block::reset().
Referenced by nfd::RibManager::enableLocalFields().
RibEntry & ndn::nfd::RibEntry::clearRoutes | ( | ) |
Definition at line 247 of file rib-entry.cpp.
References ndn::Block::reset().
size_t ndn::nfd::RibEntry::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 256 of file rib-entry.cpp.
References ndn::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), and ndn::tlv::nfd::RibEntry.
Referenced by nfd::RibManager::enableLocalFields().
const Block & ndn::nfd::RibEntry::wireEncode | ( | ) | const |
Definition at line 273 of file rib-entry.cpp.
References ndn::Block::hasWire(), and ndn::nfd::Route::wireEncode().
void ndn::nfd::RibEntry::wireDecode | ( | const Block & | block | ) |
Definition at line 289 of file rib-entry.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::Name, NDN_THROW, ndn::Block::parse(), ndn::tlv::nfd::RibEntry, ndn::tlv::nfd::Route, and ndn::Block::type().