#include <lsa.hpp>
Definition at line 330 of file lsa.hpp.
Enumerator |
---|
ADJACENCY |
|
COORDINATE |
|
NAME |
|
BASE |
|
MOCK |
|
Definition at line 41 of file lsa.hpp.
nlsr::CoordinateLsa::CoordinateLsa |
( |
| ) |
|
|
inline |
nlsr::CoordinateLsa::CoordinateLsa |
( |
const ndn::Name & |
origR, |
|
|
uint32_t |
lsn, |
|
|
const ndn::time::system_clock::TimePoint & |
lt, |
|
|
double |
r, |
|
|
std::vector< double > |
theta |
|
) |
| |
bool nlsr::CoordinateLsa::deserialize |
( |
const std::string & |
content | ) |
|
|
overridevirtualnoexcept |
Initializes this coordinate LSA with the data in content.
- Parameters
-
content | The string content that is used to build the LSA. |
This function initializes this LSA object to represent the data specified by the parameter. The format that it is expecting is the same as for getData();
Implements nlsr::Lsa.
Definition at line 170 of file lsa.cpp.
bool nlsr::Lsa::deserializeCommon |
( |
boost::tokenizer< boost::char_separator< char >>::iterator & |
iterator | ) |
|
|
protectedinherited |
double nlsr::CoordinateLsa::getCorRadius |
( |
| ) |
const |
|
inline |
const std::vector<double> nlsr::CoordinateLsa::getCorTheta |
( |
| ) |
const |
|
inline |
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 |
Lsa::Type nlsr::CoordinateLsa::getType |
( |
| ) |
const |
|
inlineoverridevirtual |
bool nlsr::CoordinateLsa::isEqualContent |
( |
const CoordinateLsa & |
clsa | ) |
|
std::string nlsr::CoordinateLsa::serialize |
( |
| ) |
const |
|
overridevirtual |
Returns the data that this coordinate LSA represents.
The format is: <original router>|coordinate|<seq. no.>|<exp. time>|<radians>|<theta>|
Implements nlsr::Lsa.
Definition at line 159 of file lsa.cpp.
void nlsr::CoordinateLsa::setCorRadius |
( |
double |
cr | ) |
|
|
inline |
void nlsr::CoordinateLsa::setCorTheta |
( |
std::vector< double > |
ct | ) |
|
|
inline |
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::CoordinateLsa::writeLog |
( |
| ) |
const |
|
overridevirtual |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const CoordinateLsa & |
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 |