#include <lsa.hpp>
Definition at line 158 of file lsa.hpp.
Enumerator |
---|
ADJACENCY |
|
COORDINATE |
|
NAME |
|
BASE |
|
MOCK |
|
Definition at line 41 of file lsa.hpp.
nlsr::NameLsa::NameLsa |
( |
| ) |
|
|
inline |
nlsr::NameLsa::NameLsa |
( |
const ndn::Name & |
origR, |
|
|
uint32_t |
lsn, |
|
|
const ndn::time::system_clock::TimePoint & |
lt, |
|
|
NamePrefixList & |
npl |
|
) |
| |
void nlsr::NameLsa::addName |
( |
const ndn::Name & |
name | ) |
|
|
inline |
bool nlsr::NameLsa::deserialize |
( |
const std::string & |
content | ) |
|
|
overridevirtualnoexcept |
Initializes this LSA object with content's data.
- Parameters
-
content | The data (e.g. name prefixes) to initialize this LSA with. |
This function initializes this object to represent the data contained in content. The format for this is the same as for getData(); getData() returns data of this format, in other words.
Implements nlsr::Lsa.
Definition at line 93 of file lsa.cpp.
bool nlsr::Lsa::deserializeCommon |
( |
boost::tokenizer< boost::char_separator< char >>::iterator & |
iterator | ) |
|
|
protectedinherited |
std::string nlsr::Lsa::getData |
( |
| ) |
const |
|
protectedinherited |
Get data common to all LSA types.
This method should be called by all LSA classes in their serialize() method.
Definition at line 41 of file lsa.cpp.
const ndn::time::system_clock::TimePoint& nlsr::Lsa::getExpirationTimePoint |
( |
| ) |
const |
|
inlineinherited |
ndn::EventId nlsr::Lsa::getExpiringEventId |
( |
| ) |
const |
|
inlineinherited |
const ndn::Name nlsr::Lsa::getKey |
( |
| ) |
const |
|
inherited |
Gets the key for this LSA.
Format is: <router name>/<LSA type>\
Definition at line 50 of file lsa.cpp.
uint32_t nlsr::Lsa::getLsSeqNo |
( |
| ) |
const |
|
inlineinherited |
const ndn::Name& nlsr::Lsa::getOrigRouter |
( |
| ) |
const |
|
inlineinherited |
bool nlsr::NameLsa::isEqualContent |
( |
const NameLsa & |
other | ) |
const |
void nlsr::NameLsa::removeName |
( |
const ndn::Name & |
name | ) |
|
|
inline |
std::string nlsr::NameLsa::serialize |
( |
| ) |
const |
|
overridevirtual |
Returns the data that this name LSA has.
Format is: <original router prefix>|name|<seq. no.>|<exp. time>|<prefix 1>|<prefix 2>|...|<prefix n>|
Implements nlsr::Lsa.
Definition at line 81 of file lsa.cpp.
void nlsr::Lsa::setExpirationTimePoint |
( |
const ndn::time::system_clock::TimePoint & |
lt | ) |
|
|
inlineinherited |
void nlsr::Lsa::setExpiringEventId |
( |
const ndn::EventId |
leei | ) |
|
|
inlineinherited |
void nlsr::Lsa::setLsSeqNo |
( |
uint32_t |
lsn | ) |
|
|
inlineinherited |
void nlsr::Lsa::setOrigRouter |
( |
const ndn::Name & |
org | ) |
|
|
inlineinherited |
std::string nlsr::Lsa::toString |
( |
| ) |
const |
|
protectedinherited |
Print data common to all LSA types.
Definition at line 365 of file lsa.cpp.
void nlsr::NameLsa::writeLog |
( |
| ) |
const |
|
overridevirtual |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const NameLsa & |
lsa |
|
) |
| |
|
friend |
ndn::time::system_clock::TimePoint nlsr::Lsa::m_expirationTimePoint |
|
protectedinherited |
ndn::EventId nlsr::Lsa::m_expiringEventId |
|
protectedinherited |
uint32_t nlsr::Lsa::m_lsSeqNo |
|
protectedinherited |
ndn::Name nlsr::Lsa::m_origRouter |
|
protectedinherited |