22 #ifndef NDN_MGMT_NFD_FIB_ENTRY_HPP 23 #define NDN_MGMT_NFD_FIB_ENTRY_HPP 25 #include "../../encoding/block.hpp" 26 #include "../../name.hpp" 70 template<encoding::Tag TAG>
130 setPrefix(
const Name& prefix);
132 const std::vector<NextHopRecord>&
135 return m_nextHopRecords;
138 template<
typename InputIt>
142 m_nextHopRecords.assign(first, last);
151 clearNextHopRecords();
153 template<encoding::Tag TAG>
165 std::vector<NextHopRecord> m_nextHopRecords;
167 mutable Block m_wire;
187 #endif // NDN_MGMT_NFD_FIB_ENTRY_HPP Copyright (c) 2013-2017 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
NextHopRecord & setFaceId(uint64_t faceId)
FibEntry & setNextHopRecords(InputIt first, InputIt last)
Represents a TLV element of NDN packet format.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
void wireDecode(const Block &block)
const Block & wireEncode() const
const Name & getPrefix() const
Error(const std::string &what)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
NextHopRecord & setCost(uint64_t cost)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Represents an absolute name.
const std::vector< NextHopRecord > & getNextHopRecords() const
Error(const std::string &what)
uint64_t getFaceId() const
represents an error in TLV encoding or decoding