22 #ifndef NLSR_LSA_ADJ_LSA_HPP
23 #define NLSR_LSA_ADJ_LSA_HPP
29 #include <boost/operators.hpp>
43 class AdjLsa :
public Lsa,
private boost::equality_comparable<AdjLsa>
50 AdjLsa(
const ndn::Name& originR, uint64_t seqNo,
51 const ndn::time::system_clock::time_point& timepoint,
AdjacencyList& adl);
54 AdjLsa(
const ndn::Block& block);
100 template<ndn::encoding::Tag TAG>
102 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
110 std::tuple<bool, std::list<ndn::Name>, std::list<ndn::Name>>
111 update(
const std::shared_ptr<Lsa>& lsa)
override;
115 print(std::ostream& os)
const override;
125 return lhs.m_adl == rhs.m_adl;
Represents an LSA of adjacencies of the origin router in link-state mode.
const_iterator begin() const
std::tuple< bool, std::list< ndn::Name >, std::list< ndn::Name > > update(const std::shared_ptr< Lsa > &lsa) override
const ndn::Block & wireEncode() const override
friend bool operator==(const AdjLsa &lhs, const AdjLsa &rhs)
void wireDecode(const ndn::Block &wire)
const_iterator end() const
AdjacencyList::const_iterator const_iterator
Lsa::Type getType() const override
static constexpr Lsa::Type type()
const AdjacencyList & getAdl() const
void addAdjacent(const Adjacent &adj)
std::list< Adjacent >::const_iterator const_iterator
const_iterator begin() const
bool insert(const Adjacent &adjacent)
const_iterator end() const
A neighbor reachable over a Face.
Represents a Link State Announcement (LSA).
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(Adjacent)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE