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 |
|
explicit |
Definition at line 225 of file rib-entry.cpp.
References 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().
|
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::Block::reset().
Definition at line 239 of file rib-entry.cpp.
References ndn::Block::reset().
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::tlv::nfd::RibEntry, and ndn::Name::wireEncode().
const Block & ndn::nfd::RibEntry::wireEncode | ( | ) | const |
Definition at line 273 of file rib-entry.cpp.
References ndn::Block::hasWire().
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, ndn::Block::type(), and ndn::Name::wireDecode().
Referenced by RibEntry().