Represents an LSA of name prefixes announced by the origin router. More...
#include <name-lsa.hpp>
Inheritance diagram for nlsr::NameLsa:
Collaboration diagram for nlsr::NameLsa:Public Types | |
| enum class | Type { ADJACENCY , COORDINATE , NAME , BASE } |
Public Member Functions | |
| NameLsa ()=default | |
| NameLsa (const ndn::Block &block) | |
| NameLsa (const ndn::Name &originRouter, uint64_t seqNo, const ndn::time::system_clock::time_point &timepoint, const NamePrefixList &npl) | |
| void | addName (const ndn::Name &name) |
| const ndn::time::system_clock::time_point & | getExpirationTimePoint () const |
| NamePrefixList & | getNpl () |
| const NamePrefixList & | getNpl () const |
| const ndn::Name & | getOriginRouter () const |
| uint64_t | getSeqNo () const |
| Lsa::Type | getType () const override |
| void | removeName (const ndn::Name &name) |
| 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 NameLsa &lhs, const NameLsa &rhs) |
Represents an LSA of name prefixes announced by the origin router.
NameLsa is encoded as:
Definition at line 42 of file name-lsa.hpp.
|
stronginherited |
|
default |
| nlsr::NameLsa::NameLsa | ( | const ndn::Name & | originRouter, |
| uint64_t | seqNo, | ||
| const ndn::time::system_clock::time_point & | timepoint, | ||
| const NamePrefixList & | npl | ||
| ) |
Definition at line 27 of file name-lsa.cpp.
|
explicit |
Definition at line 37 of file name-lsa.cpp.
|
inline |
Definition at line 79 of file name-lsa.hpp.
|
inlineinherited |
|
inline |
Definition at line 67 of file name-lsa.hpp.
|
inline |
Definition at line 73 of file name-lsa.hpp.
|
inlineinherited |
|
inlineoverridevirtual |
Implements nlsr::Lsa.
Definition at line 55 of file name-lsa.hpp.
|
inline |
Definition at line 86 of file name-lsa.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlinestaticconstexpr |
Definition at line 61 of file name-lsa.hpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 126 of file name-lsa.cpp.
| void nlsr::NameLsa::wireDecode | ( | const ndn::Block & | wire | ) |
Definition at line 83 of file name-lsa.cpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 65 of file name-lsa.cpp.
| size_t nlsr::NameLsa::wireEncode | ( | ndn::EncodingImpl< TAG > & | block | ) | const |
Definition at line 44 of file name-lsa.cpp.
Definition at line 115 of file name-lsa.hpp.
|
protectedinherited |
|
protectedinherited |