22#ifndef NDN_CXX_MGMT_NFD_FIB_ENTRY_HPP
23#define NDN_CXX_MGMT_NFD_FIB_ENTRY_HPP
65 template<encoding::Tag TAG>
85operator==(
const NextHopRecord& a,
const NextHopRecord& b);
94operator<<(std::ostream& os,
const NextHopRecord& nh);
123 const std::vector<NextHopRecord>&
126 return m_nextHopRecords;
129 template<
typename InputIt>
133 m_nextHopRecords.assign(first, last);
144 template<encoding::Tag TAG>
156 std::vector<NextHopRecord> m_nextHopRecords;
158 mutable Block m_wire;
164operator==(
const FibEntry& a,
const FibEntry& b);
173operator<<(std::ostream& os,
const FibEntry& entry);
Represents a TLV element of the NDN packet format.
void reset() noexcept
Reset the Block to a default-constructed state.
Represents an absolute name.
FibEntry & clearNextHopRecords()
const Name & getPrefix() const
const Block & wireEncode() const
FibEntry & setPrefix(const Name &prefix)
void wireDecode(const Block &block)
const std::vector< NextHopRecord > & getNextHopRecords() const
FibEntry & addNextHopRecord(const NextHopRecord &nh)
FibEntry & setNextHopRecords(InputIt first, InputIt last)
NextHopRecord & setFaceId(uint64_t faceId)
void wireDecode(const Block &block)
NextHopRecord & setCost(uint64_t cost)
uint64_t getFaceId() const
const Block & wireEncode() const
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains classes and functions related to the NFD Management protocol.
constexpr uint64_t INVALID_FACE_ID
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)