22 #ifndef NDN_CXX_MGMT_NFD_FIB_ENTRY_HPP
23 #define NDN_CXX_MGMT_NFD_FIB_ENTRY_HPP
65 template<encoding::Tag TAG>
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;
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 Block & wireEncode() const
FibEntry & setNextHopRecords(InputIt first, InputIt last)
FibEntry & setPrefix(const Name &prefix)
void wireDecode(const Block &block)
FibEntry & addNextHopRecord(const NextHopRecord &nh)
const Name & getPrefix() const
const std::vector< NextHopRecord > & getNextHopRecords() const
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)