src: Renaming class to spell out them (Adl, Nhl, Npl, Npt, Npte)
Refs: #1534
Change-Id: If4a205e8ad2419505cc796027a5c863471ef5439
diff --git a/src/lsa.cpp b/src/lsa.cpp
index dac54a2..5f76eda 100644
--- a/src/lsa.cpp
+++ b/src/lsa.cpp
@@ -26,7 +26,7 @@
}
NameLsa::NameLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt,
- NamePrefixList npl)
+ NamePrefixList& npl)
{
m_origRouter = origR;
m_lsType = lst;
@@ -132,7 +132,7 @@
}
bool
-CoordinateLsa::isEqual(const CoordinateLsa& clsa)
+CoordinateLsa::isEqualContent(const CoordinateLsa& clsa)
{
return (std::abs(m_corRad - clsa.getCorRadius()) <
std::numeric_limits<double>::epsilon()) &&
@@ -192,7 +192,7 @@
AdjLsa::AdjLsa(string origR, uint8_t lst, uint32_t lsn, uint32_t lt,
- uint32_t nl , AdjacencyList adl)
+ uint32_t nl , AdjacencyList& adl)
{
m_origRouter = origR;
m_lsType = lst;
@@ -218,9 +218,9 @@
}
bool
-AdjLsa::isEqual(AdjLsa& alsa)
+AdjLsa::isEqualContent(AdjLsa& alsa)
{
- return m_adl.isEqual(alsa.getAdl());
+ return m_adl == alsa.getAdl();
}
@@ -291,7 +291,7 @@
{
if (getOrigRouter() != pnlsr.getConfParameter().getRouterPrefix())
{
- pnlsr.getNamePrefixTable().addNpteByDestName(getOrigRouter(), getOrigRouter(),
+ pnlsr.getNamePrefixTable().addEntry(getOrigRouter(), getOrigRouter(),
pnlsr);
}
}
@@ -302,7 +302,7 @@
{
if (getOrigRouter() != pnlsr.getConfParameter().getRouterPrefix())
{
- pnlsr.getNamePrefixTable().removeNpte(getOrigRouter(), getOrigRouter(), pnlsr);
+ pnlsr.getNamePrefixTable().removeEntry(getOrigRouter(), getOrigRouter(), pnlsr);
}
}