#include <nfd-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 &wire) |
Definition at line 34 of file nfd-fib-entry.hpp.
ndn::nfd::NextHopRecord::NextHopRecord | ( | ) |
Definition at line 47 of file nfd-fib-entry.cpp.
Referenced by ndn::nfd::NextHopRecord::Error::Error(), and ndn::nfd::FibEntry::wireDecode().
|
explicit |
Definition at line 53 of file nfd-fib-entry.cpp.
References wireDecode().
|
inline |
Definition at line 53 of file nfd-fib-entry.hpp.
References setFaceId().
NextHopRecord & ndn::nfd::NextHopRecord::setFaceId | ( | uint64_t | faceId | ) |
Definition at line 59 of file nfd-fib-entry.cpp.
References ndn::Block::reset().
Referenced by nfd::FibManager::FibManager(), and getFaceId().
|
inline |
Definition at line 62 of file nfd-fib-entry.hpp.
References setCost(), wireDecode(), and wireEncode().
NextHopRecord & ndn::nfd::NextHopRecord::setCost | ( | uint64_t | cost | ) |
Definition at line 67 of file nfd-fib-entry.cpp.
References ndn::Block::reset().
Referenced by nfd::FibManager::FibManager(), and getCost().
size_t ndn::nfd::NextHopRecord::wireEncode | ( | EncodingImpl< TAG > & | block | ) | const |
Definition at line 76 of file nfd-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 99 of file nfd-fib-entry.cpp.
References ndn::Block::hasWire().
Referenced by getCost(), ndn::nfd::FibEntry::setNextHopRecords(), and ndn::nfd::FibEntry::wireEncode().
void ndn::nfd::NextHopRecord::wireDecode | ( | const Block & | wire | ) |
Definition at line 116 of file nfd-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(), and ndn::Block::type().
Referenced by ndn::nfd::FibEntry::FibEntry(), getCost(), NextHopRecord(), and ndn::nfd::FibEntry::setNextHopRecords().