22 #ifndef NLSR_TLV_ADJACENCY_LSA_HPP 23 #define NLSR_TLV_ADJACENCY_LSA_HPP 28 #include <ndn-cxx/util/time.hpp> 29 #include <ndn-cxx/encoding/block.hpp> 30 #include <ndn-cxx/encoding/encoding-buffer.hpp> 31 #include <ndn-cxx/encoding/tlv.hpp> 32 #include <ndn-cxx/name.hpp> 86 return m_hasAdjacencies;
89 const std::list<Adjacency>&
98 m_adjacencies.push_back(adjacency);
100 m_hasAdjacencies =
true;
107 m_adjacencies.clear();
108 m_hasAdjacencies =
false;
121 template<ndn::encoding::Tag TAG>
123 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
150 bool m_hasAdjacencies;
151 AdjacencyList m_adjacencies;
153 mutable ndn::Block m_wire;
159 return m_adjacencies.begin();
165 return m_adjacencies.end();
174 #endif // NLSR_TLV_ADJACENCY_LSA_HPP Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
std::list< Adjacency > AdjacencyList
AdjacencyLsa & addAdjacency(const Adjacency &adjacency)
void wireDecode(const ndn::Block &wire)
Populate this object by decoding the one contained in the given block.
std::list< Adjacent >::const_iterator const_iterator
Error(const std::string &what)
const LsaInfo & getLsaInfo() const
bool hasAdjacencies() const
const std::list< Adjacency > & getAdjacencies() const
AdjacencyLsa & setLsaInfo(const LsaInfo &lsaInfo)
Data abstraction for LsaInfo.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
Data abstraction for AdjacencyLsa.
AdjacencyLsa & clearAdjacencies()
std::ostream & operator<<(std::ostream &os, const AdjacencyLsa &adjacencyLsa)
Data abstraction for Adjacency.
const ndn::Block & wireEncode() const
Create a TLV encoding of this object.
AdjacencyList::const_iterator iterator