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>
116 const std::list<NextHopRecord>&
119 return m_nextHopRecords;
129 m_nextHopRecords.clear();
130 m_nextHopRecords.assign(begin, end);
135 template<encoding::Tag TAG>
147 std::list<NextHopRecord> m_nextHopRecords;
149 mutable Block m_wire;
155 #endif // NDN_MGMT_NFD_FIB_ENTRY_HPP
Copyright (c) 2013-2016 Regents of the University of California.
void wireDecode(const Block &wire)
NextHopRecord & setFaceId(uint64_t faceId)
const Block & wireEncode() const
FibEntry & setPrefix(const Name &prefix)
Class representing a wire element of NDN-TLV packet format.
const Block & wireEncode() const
const Name & getPrefix() const
void wireDecode(const Block &wire)
Error(const std::string &what)
const std::list< NextHopRecord > & getNextHopRecords() const
NextHopRecord & setCost(uint64_t cost)
void reset()
Reset wire buffer of the element.
Name abstraction to represent an absolute name.
FibEntry & addNextHopRecord(const NextHopRecord &nextHopRecord)
Error(const std::string &what)
uint64_t getFaceId() const
FibEntry & setNextHopRecords(const T &begin, const T &end)
represents an error in TLV encoding or decoding