#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.
References setFaceId().
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().
Referenced by getFaceId().
|
inline |
Definition at line 58 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 57 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 66 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 81 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 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 ndn::nfd::FibEntry::FibEntry(), getCost(), NextHopRecord(), and ndn::nfd::FibEntry::setNextHopRecords().