22 #ifndef NLSR_TLV_ADJACENCY_HPP 23 #define NLSR_TLV_ADJACENCY_HPP 25 #include <ndn-cxx/util/time.hpp> 26 #include <ndn-cxx/encoding/block.hpp> 27 #include <ndn-cxx/encoding/encoding-buffer.hpp> 28 #include <ndn-cxx/encoding/tlv.hpp> 29 #include <ndn-cxx/name.hpp> 112 template<ndn::encoding::Tag TAG>
114 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
137 mutable ndn::Block m_wire;
146 #endif // NLSR_TLV_ADJACENCY_HPP void wireDecode(const ndn::Block &wire)
Populate this object by decoding the object contained in the given block.
Adjacency & setCost(uint64_t cost)
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const ndn::Block & wireEncode() const
Create a TLV encoding of this object.
const std::string & getUri() const
Adjacency & setUri(const std::string &uri)
Error(const std::string &what)
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const ndn::Name & getName() const
std::ostream & operator<<(std::ostream &os, const AdjacencyLsa &adjacencyLsa)
Data abstraction for Adjacency.
Adjacency & setName(const ndn::Name &name)