22 #ifndef NLSR_TLV_LSDB_STATUS_HPP 23 #define NLSR_TLV_LSDB_STATUS_HPP 29 #include <ndn-cxx/util/time.hpp> 30 #include <ndn-cxx/encoding/block.hpp> 31 #include <ndn-cxx/encoding/encoding-buffer.hpp> 32 #include <ndn-cxx/encoding/tlv.hpp> 33 #include <ndn-cxx/name.hpp> 71 const std::list<AdjacencyLsa>&
74 return m_adjacencyLsas;
86 return m_hasAdjacencyLsas;
89 const std::list<CoordinateLsa>&
92 return m_coordinateLsas;
104 return m_hasCoordinateLsas;
107 const std::list<NameLsa>&
122 return m_hasNameLsas;
135 template<ndn::encoding::Tag TAG>
137 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
157 AdjacencyLsaList m_adjacencyLsas;
158 CoordinateLsaList m_coordinateLsas;
159 NameLsaList m_nameLsas;
161 bool m_hasAdjacencyLsas;
162 bool m_hasCoordinateLsas;
165 mutable ndn::Block m_wire;
174 #endif // NLSR_TLV_LSDB_STATUS_HPP std::list< AdjacencyLsa > AdjacencyLsaList
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
LsdbStatus & clearAdjacencyLsas()
void wireDecode(const ndn::Block &wire)
Populate this object by decoding the one contained in the given block.
const std::list< CoordinateLsa > & getCoordinateLsas() const
Data abstraction for CoordinateLsa.
const ndn::Block & wireEncode() const
Create a TLV encoding of this object.
LsdbStatus & clearNameLsas()
std::list< NameLsa > NameLsaList
LsdbStatus & addCoordinateLsa(const CoordinateLsa &coordinateLsa)
LsdbStatus & clearCoordinateLsas()
LsdbStatus & addAdjacencyLsa(const AdjacencyLsa &adjacencyLsa)
Data abstraction for NameLsa.
std::list< CoordinateLsa > CoordinateLsaList
const std::list< AdjacencyLsa > & getAdjacencyLsas() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
Data abstraction for AdjacencyLsa.
Data abstraction for LsdbStatus.
LsdbStatus & addNameLsa(const NameLsa &nameLsa)
std::ostream & operator<<(std::ostream &os, const AdjacencyLsa &adjacencyLsa)
const std::list< NameLsa > & getNameLsas() const
Error(const std::string &what)