src: Discard usage of std::pair of reference type and rename functions
Refs: #1531
Change-Id: Ief2a525b8fb8addbd491d202d6b02d5db2b41ea4
diff --git a/src/lsa.hpp b/src/lsa.hpp
index 23ff395..c795159 100644
--- a/src/lsa.hpp
+++ b/src/lsa.hpp
@@ -118,7 +118,7 @@
}
std::string
- getKey();
+ getKey() const;
std::string
getData();
@@ -194,10 +194,10 @@
std::ostream&
operator<<(std::ostream& os, AdjLsa& aLsa);
-class CorLsa: public Lsa
+class CoordinateLsa: public Lsa
{
public:
- CorLsa()
+ CoordinateLsa()
: Lsa()
, m_corRad(0)
, m_corTheta(0)
@@ -205,11 +205,11 @@
setLsType(3);
}
- CorLsa(std::string origR, uint8_t lst, uint32_t lsn, uint32_t lt
- , double r, double theta);
+ CoordinateLsa(std::string origR, uint8_t lst, uint32_t lsn, uint32_t lt
+ , double r, double theta);
std::string
- getKey();
+ getKey() const;
std::string
getData();
@@ -218,7 +218,7 @@
initializeFromContent(std::string content);
double
- getCorRadius()
+ getCorRadius() const
{
if (m_corRad >= 0)
{
@@ -237,7 +237,7 @@
}
double
- getCorTheta()
+ getCorTheta() const
{
return m_corTheta;
}
@@ -249,7 +249,7 @@
}
bool
- isEqual(CorLsa& clsa);
+ isEqual(const CoordinateLsa& clsa);
private:
double m_corRad;
@@ -258,7 +258,7 @@
};
std::ostream&
-operator<<(std::ostream& os, CorLsa& cLsa);
+operator<<(std::ostream& os, const CoordinateLsa& cLsa);
}//namespace nlsr