#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.
Referenced by ndn::nfd::NextHopRecord::Error::Error().
|
explicit |
Definition at line 42 of file fib-entry.cpp.
References wireDecode().
|
inline |
Definition at line 53 of file fib-entry.hpp.
References setFaceId().
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().
Referenced by getFaceId().
|
inline |
Definition at line 62 of file fib-entry.hpp.
References ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator==(), setCost(), wireDecode(), and wireEncode().
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().
Referenced by getCost().
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::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), 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().
Referenced by getCost(), ndn::nfd::FibEntry::setNextHopRecords(), and ndn::nfd::FibEntry::wireEncode().
void ndn::nfd::NextHopRecord::wireDecode | ( | const Block & | block | ) |
Definition at line 96 of file fib-entry.cpp.
References ndn::tlv::nfd::Cost, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::NextHopRecord, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::to_string(), and ndn::Block::type().
Referenced by ndn::nfd::FibEntry::FibEntry(), getCost(), NextHopRecord(), and ndn::nfd::FibEntry::setNextHopRecords().