Data abstraction for NameLsa NameLsa := NAME-LSA-TYPE TLV-LENGTH Lsa Name+.
More...
#include <name-lsa.hpp>
Data abstraction for NameLsa NameLsa := NAME-LSA-TYPE TLV-LENGTH Lsa Name+.
Definition at line 35 of file name-lsa.hpp.
◆ Type
Enumerator |
---|
ADJACENCY | |
COORDINATE | |
NAME | |
BASE | |
Definition at line 50 of file lsa.hpp.
◆ NameLsa() [1/3]
nlsr::NameLsa::NameLsa |
( |
| ) |
|
|
default |
◆ NameLsa() [2/3]
nlsr::NameLsa::NameLsa |
( |
const ndn::Name & |
originRouter, |
|
|
uint64_t |
seqNo, |
|
|
const ndn::time::system_clock::time_point & |
timepoint, |
|
|
const NamePrefixList & |
npl |
|
) |
| |
◆ NameLsa() [3/3]
nlsr::NameLsa::NameLsa |
( |
const ndn::Block & |
block | ) |
|
◆ addName()
void nlsr::NameLsa::addName |
( |
const ndn::Name & |
name | ) |
|
|
inline |
◆ getExpirationTimePoint()
const ndn::time::system_clock::time_point& nlsr::Lsa::getExpirationTimePoint |
( |
| ) |
const |
|
inlineinherited |
◆ getNpl() [1/2]
◆ getNpl() [2/2]
◆ getOriginRouter()
const ndn::Name& nlsr::Lsa::getOriginRouter |
( |
| ) |
const |
|
inlineinherited |
◆ getOriginRouterCopy()
ndn::Name nlsr::Lsa::getOriginRouterCopy |
( |
| ) |
const |
|
inlineinherited |
◆ getSeqNo()
uint64_t nlsr::Lsa::getSeqNo |
( |
| ) |
const |
|
inlineinherited |
◆ getString()
std::string nlsr::Lsa::getString |
( |
| ) |
const |
|
protectedinherited |
◆ getType()
◆ isEqualContent()
bool nlsr::NameLsa::isEqualContent |
( |
const NameLsa & |
other | ) |
const |
◆ removeName()
void nlsr::NameLsa::removeName |
( |
const ndn::Name & |
name | ) |
|
|
inline |
◆ setExpirationTimePoint()
void nlsr::Lsa::setExpirationTimePoint |
( |
const ndn::time::system_clock::time_point & |
lt | ) |
|
|
inlineinherited |
◆ setExpiringEventId()
void nlsr::Lsa::setExpiringEventId |
( |
ndn::scheduler::EventId |
eid | ) |
|
|
inlineinherited |
◆ setSeqNo()
void nlsr::Lsa::setSeqNo |
( |
uint64_t |
seqNo | ) |
|
|
inlineinherited |
◆ toString()
std::string nlsr::NameLsa::toString |
( |
| ) |
const |
|
overridevirtual |
Get data common to all LSA types for printing purposes.
Implements nlsr::Lsa.
Definition at line 122 of file name-lsa.cpp.
◆ type()
static constexpr Lsa::Type nlsr::NameLsa::type |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ update()
std::tuple< bool, std::list< ndn::Name >, std::list< ndn::Name > > nlsr::NameLsa::update |
( |
const std::shared_ptr< Lsa > & |
lsa | ) |
|
|
overridevirtual |
◆ wireDecode()
void nlsr::NameLsa::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
◆ wireEncode() [1/2]
const ndn::Block & nlsr::NameLsa::wireEncode |
( |
| ) |
const |
|
overridevirtual |
◆ wireEncode() [2/2]
template<ndn::encoding::Tag TAG>
size_t nlsr::NameLsa::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
◆ m_expirationTimePoint
ndn::time::system_clock::time_point nlsr::Lsa::m_expirationTimePoint |
|
protectedinherited |
◆ m_expiringEventId
ndn::scheduler::ScopedEventId nlsr::Lsa::m_expiringEventId |
|
protectedinherited |
◆ m_originRouter
ndn::Name nlsr::Lsa::m_originRouter |
|
protectedinherited |
◆ m_seqNo
uint64_t nlsr::Lsa::m_seqNo = 0 |
|
protectedinherited |
◆ m_wire
ndn::Block nlsr::Lsa::m_wire |
|
mutableprotectedinherited |