#include <fib-entry.hpp>
Classes | |
class | Error |
Public Member Functions | |
NextHopRecord () | |
NextHopRecord (const Block &block) | |
uint64_t | getFaceId () const |
NextHopRecord & | setFaceId (uint64_t faceId) |
uint64_t | getCost () const |
NextHopRecord & | setCost (uint64_t cost) |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &block) const |
const Block & | wireEncode () const |
void | wireDecode (const Block &block) |
Definition at line 34 of file fib-entry.hpp.
ndn::nfd::NextHopRecord::NextHopRecord | ( | ) |
Definition at line 36 of file fib-entry.cpp.
|
explicit |
Definition at line 42 of file fib-entry.cpp.
References wireDecode().
|
inline |
Definition at line 49 of file fib-entry.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
NextHopRecord & ndn::nfd::NextHopRecord::setFaceId | ( | uint64_t | faceId | ) |
Definition at line 48 of file fib-entry.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 58 of file fib-entry.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
NextHopRecord & ndn::nfd::NextHopRecord::setCost | ( | uint64_t | cost | ) |
Definition at line 56 of file fib-entry.cpp.
References ndn::Block::reset().
size_t ndn::nfd::NextHopRecord::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 65 of file fib-entry.cpp.
References ndn::tlv::nfd::Cost, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::NextHopRecord, and ndn::encoding::prependNonNegativeIntegerBlock().
const Block & ndn::nfd::NextHopRecord::wireEncode | ( | ) | const |
Definition at line 80 of file fib-entry.cpp.
References ndn::Block::hasWire().
void ndn::nfd::NextHopRecord::wireDecode | ( | const Block & | block | ) |
Definition at line 96 of file fib-entry.cpp.
References ndn::tlv::nfd::Cost, ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::nfd::FaceId, ndn::tlv::nfd::NextHopRecord, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::to_string(), and ndn::Block::type().
Referenced by NextHopRecord().