22 #ifndef NDN_MGMT_NFD_FIB_ENTRY_HPP 23 #define NDN_MGMT_NFD_FIB_ENTRY_HPP 40 using tlv::Error::Error;
66 template<encoding::Tag TAG>
126 setPrefix(
const Name& prefix);
128 const std::vector<NextHopRecord>&
131 return m_nextHopRecords;
134 template<
typename InputIt>
138 m_nextHopRecords.assign(first, last);
147 clearNextHopRecords();
149 template<encoding::Tag TAG>
161 std::vector<NextHopRecord> m_nextHopRecords;
163 mutable Block m_wire;
183 #endif // NDN_MGMT_NFD_FIB_ENTRY_HPP
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
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