Represents a Link State Announcement (LSA). More...
#include <lsa.hpp>
Classes | |
class | Error |
Public Types | |
enum class | Type { ADJACENCY , COORDINATE , NAME , BASE } |
Public Member Functions | |
virtual | ~Lsa ()=default |
const ndn::time::system_clock::time_point & | getExpirationTimePoint () const |
const ndn::Name & | getOriginRouter () const |
uint64_t | getSeqNo () const |
virtual Type | getType () const =0 |
void | setExpirationTimePoint (const ndn::time::system_clock::time_point <) |
void | setExpiringEventId (ndn::scheduler::EventId eid) |
void | setSeqNo (uint64_t seqNo) |
virtual std::tuple< bool, std::list< ndn::Name >, std::list< ndn::Name > > | update (const std::shared_ptr< Lsa > &lsa)=0 |
virtual const ndn::Block & | wireEncode () const =0 |
Protected Member Functions | |
Lsa ()=default | |
Lsa (const Lsa &lsa) | |
Lsa (const ndn::Name &originRouter, uint64_t seqNo, ndn::time::system_clock::time_point expirationTimePoint) | |
void | wireDecode (const ndn::Block &wire) |
template<ndn::encoding::Tag TAG> | |
size_t | wireEncode (ndn::EncodingImpl< TAG > &block) const |
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 | |
std::ostream & | operator<< (std::ostream &os, const Lsa &lsa) |
Represents a Link State Announcement (LSA).
The base level LSA is encoded as:
|
strong |
|
protecteddefault |
|
protected |
|
virtualdefault |
|
inline |
|
pure virtual |
Implemented in nlsr::NameLsa, nlsr::CoordinateLsa, and nlsr::AdjLsa.
|
inline |
|
inline |
|
pure virtual |
Implemented in nlsr::NameLsa, nlsr::CoordinateLsa, and nlsr::AdjLsa.
|
protected |
|
pure virtual |
Implemented in nlsr::NameLsa, nlsr::CoordinateLsa, and nlsr::AdjLsa.
|
protected |
|
friend |
|
protected |
|
protected |