Data abstraction for RIB entry. More...
#include <rib-entry.hpp>
Classes | |
class | Error |
Public Types | |
typedef std::list< Route > | RouteList |
typedef RouteList::const_iterator | iterator |
Public Member Functions | |
RibEntry () | |
RibEntry (const Block &block) | |
const Name & | getName () const |
RibEntry & | setName (const Name &prefix) |
const std::list< Route > & | getRoutes () const |
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 &wire) |
iterator | begin () const |
iterator | end () const |
Data abstraction for RIB entry.
A RIB entry contains one or more routes for the name prefix
RibEntry := RIB-ENTRY-TYPE TLV-LENGTH Name Route+
Definition at line 192 of file rib-entry.hpp.
typedef std::list<Route> ndn::nfd::RibEntry::RouteList |
Definition at line 203 of file rib-entry.hpp.
typedef RouteList::const_iterator ndn::nfd::RibEntry::iterator |
Definition at line 204 of file rib-entry.hpp.
ndn::nfd::RibEntry::RibEntry | ( | ) |
Definition at line 209 of file rib-entry.cpp.
|
explicit |
Definition at line 213 of file rib-entry.cpp.
References ndn::nfd::Route::wireDecode().
|
inline |
Definition at line 212 of file rib-entry.hpp.
Referenced by ndn::nfd::operator<<().
Definition at line 218 of file rib-entry.hpp.
Referenced by nfd::rib::RibManager::onRibUpdateFailure().
|
inline |
Definition at line 226 of file rib-entry.hpp.
Definition at line 232 of file rib-entry.hpp.
Referenced by nfd::rib::RibManager::onRibUpdateFailure().
|
inline |
Definition at line 240 of file rib-entry.hpp.
References ndn::nfd::Route::wireDecode(), and ndn::nfd::Route::wireEncode().
size_t ndn::nfd::RibEntry::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 221 of file rib-entry.cpp.
References ndn::tlv::nfd::RibEntry.
Referenced by nfd::rib::RibManager::onRibUpdateFailure().
const Block & ndn::nfd::RibEntry::wireEncode | ( | ) | const |
Definition at line 246 of file rib-entry.cpp.
References ndn::Block::hasWire(), and ndn::nfd::Route::wireEncode().
void ndn::nfd::RibEntry::wireDecode | ( | const Block & | wire | ) |
Definition at line 264 of file rib-entry.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::Name, ndn::Block::parse(), ndn::tlv::nfd::RibEntry, ndn::nfd::Route::Route(), ndn::tlv::nfd::Route, and ndn::Block::type().
|
inline |
Definition at line 270 of file rib-entry.hpp.
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 276 of file rib-entry.hpp.
References ndn::nfd::operator<<().
Referenced by ndn::nfd::operator<<().