#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 37 of file fib-entry.cpp.
|
explicit |
Definition at line 43 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 49 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 57 of file fib-entry.cpp.
References ndn::Block::reset().
size_t ndn::nfd::NextHopRecord::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 66 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 81 of file fib-entry.cpp.
References ndn::Block::hasWire().
void ndn::nfd::NextHopRecord::wireDecode | ( | const Block & | block | ) |
Definition at line 97 of file fib-entry.cpp.
References ndn::tlv::nfd::Cost, ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::nfd::FaceId, NDN_THROW, ndn::tlv::nfd::NextHopRecord, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), and ndn::Block::type().
Referenced by NextHopRecord().