22 #ifndef NLSR_TLV_NAME_LSA_HPP 23 #define NLSR_TLV_NAME_LSA_HPP 27 #include <ndn-cxx/util/time.hpp> 28 #include <ndn-cxx/encoding/block.hpp> 29 #include <ndn-cxx/encoding/encoding-buffer.hpp> 30 #include <ndn-cxx/encoding/tlv.hpp> 31 #include <ndn-cxx/name.hpp> 66 NameLsa(
const ndn::Block& block);
88 const std::list<ndn::Name>&
97 m_names.push_back(name);
120 template<ndn::encoding::Tag TAG>
122 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
152 mutable ndn::Block m_wire;
158 return m_names.begin();
164 return m_names.end();
173 #endif // NLSR_TLV_NAME_LSA_HPP Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void wireDecode(const ndn::Block &wire)
Populate this object by decoding the one contained in the given block.
const std::list< ndn::Name > & getNames() const
NameLsa & addName(const ndn::Name &name)
NameLsa & setLsaInfo(const LsaInfo &lsaInfo)
NameList::const_iterator iterator
Error(const std::string &what)
Data abstraction for NameLsa.
Data abstraction for LsaInfo.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const LsaInfo & getLsaInfo() const
std::ostream & operator<<(std::ostream &os, const AdjacencyLsa &adjacencyLsa)
const ndn::Block & wireEncode() const
Create a TLV encoding of this object.
std::list< ndn::Name > NameList