lsa: simplified key getter
refs: #4354
Change-Id: Id886d41ff98530e1953066593640232d31b93b26
diff --git a/src/lsa.hpp b/src/lsa.hpp
index 72ca145..8bc9e30 100644
--- a/src/lsa.hpp
+++ b/src/lsa.hpp
@@ -112,6 +112,13 @@
virtual std::string
serialize() const = 0;
+ /*! \brief Gets the key for this LSA.
+
+ Format is: \<router name\>/\<LSA type>\
+ */
+ const ndn::Name
+ getKey() const;
+
virtual bool
initializeFromContent(const std::string& content) = 0;
@@ -172,13 +179,6 @@
m_npl.remove(name);
}
- /*! \brief Gets the key for this LSA.
-
- Format is: \<router name\>/\<LSA type>\
- */
- const ndn::Name
- getKey() const;
-
/*! \brief Initializes this LSA object with content's data.
\param content The data (e.g. name prefixes) to initialize this LSA with.
@@ -246,9 +246,6 @@
m_adl.insert(adj);
}
- const ndn::Name
- getKey() const;
-
/*! \brief Initializes this adj. LSA from the supplied content.
\param content The content that this LSA is to have, formatted
@@ -325,9 +322,6 @@
return Lsa::Type::COORDINATE;
}
- const ndn::Name
- getKey() const;
-
/*! \brief Initializes this coordinate LSA with the data in content.
\param content The string content that is used to build the LSA.