Represents an LSA of adjacencies of the origin router in link-state mode. More...
#include <adj-lsa.hpp>
Public Types | |
using | const_iterator = AdjacencyList::const_iterator |
enum class | Type { ADJACENCY , COORDINATE , NAME , BASE } |
Public Member Functions | |
AdjLsa ()=default | |
AdjLsa (const ndn::Block &block) | |
AdjLsa (const ndn::Name &originR, uint64_t seqNo, const ndn::time::system_clock::time_point &timepoint, AdjacencyList &adl) | |
void | addAdjacent (const Adjacent &adj) |
const_iterator | begin () const |
const_iterator | end () const |
const AdjacencyList & | getAdl () const |
const ndn::time::system_clock::time_point & | getExpirationTimePoint () const |
const ndn::Name & | getOriginRouter () const |
uint64_t | getSeqNo () const |
Lsa::Type | getType () const override |
void | resetAdl () |
void | setExpirationTimePoint (const ndn::time::system_clock::time_point <) |
void | setExpiringEventId (ndn::scheduler::EventId eid) |
void | setSeqNo (uint64_t seqNo) |
std::tuple< bool, std::list< ndn::Name >, std::list< ndn::Name > > | update (const std::shared_ptr< Lsa > &lsa) override |
void | wireDecode (const ndn::Block &wire) |
const ndn::Block & | wireEncode () const override |
template<ndn::encoding::Tag TAG> | |
size_t | wireEncode (ndn::EncodingImpl< TAG > &block) const |
Static Public Member Functions | |
static constexpr Lsa::Type | type () |
Protected Attributes | |
ndn::time::system_clock::time_point | m_expirationTimePoint |
ndn::scheduler::ScopedEventId | m_expiringEventId |
ndn::Name | m_originRouter |
uint64_t | m_seqNo = 0 |
ndn::Block | m_wire |
Friends | |
bool | operator== (const AdjLsa &lhs, const AdjLsa &rhs) |
Represents an LSA of adjacencies of the origin router in link-state mode.
AdjLsa is encoded as:
Definition at line 43 of file adj-lsa.hpp.
Definition at line 46 of file adj-lsa.hpp.
|
stronginherited |
|
default |
nlsr::AdjLsa::AdjLsa | ( | const ndn::Name & | originR, |
uint64_t | seqNo, | ||
const ndn::time::system_clock::time_point & | timepoint, | ||
AdjacencyList & | adl | ||
) |
Definition at line 27 of file adj-lsa.cpp.
|
explicit |
Definition at line 38 of file adj-lsa.cpp.
|
inline |
Definition at line 82 of file adj-lsa.hpp.
|
inline |
Definition at line 89 of file adj-lsa.hpp.
|
inline |
Definition at line 95 of file adj-lsa.hpp.
|
inline |
Definition at line 69 of file adj-lsa.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineoverridevirtual |
Implements nlsr::Lsa.
Definition at line 57 of file adj-lsa.hpp.
|
inline |
Definition at line 75 of file adj-lsa.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlinestaticconstexpr |
Definition at line 63 of file adj-lsa.hpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 130 of file adj-lsa.cpp.
void nlsr::AdjLsa::wireDecode | ( | const ndn::Block & | wire | ) |
Definition at line 83 of file adj-lsa.cpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 65 of file adj-lsa.cpp.
size_t nlsr::AdjLsa::wireEncode | ( | ndn::EncodingImpl< TAG > & | block | ) | const |
Definition at line 45 of file adj-lsa.cpp.
Definition at line 123 of file adj-lsa.hpp.
|
protectedinherited |
|
protectedinherited |