2626namespace psync {
2727
2828/* *
29- * @brief UserPrefixes holds the m_prefixes map from prefix to sequence number,
29+ * @brief UserPrefixes holds the prefixes map from prefix to sequence number,
3030 * used by PartialProducer and FullProducer.
3131 *
3232 * Contains code common to both
@@ -35,15 +35,15 @@ class UserPrefixes
3535{
3636public:
3737 /* *
38- * @brief Check if the prefix is in m_prefixes .
38+ * @brief Check if the prefix is in prefixes .
3939 *
4040 * @param prefix The prefix to check.
41- * @return True if the prefix is in m_prefixes .
41+ * @return True if the prefix is in prefixes .
4242 */
4343 bool
4444 isUserNode (const ndn::Name& prefix) const
4545 {
46- return m_prefixes .find (prefix) != m_prefixes .end ();
46+ return prefixes .find (prefix) != prefixes .end ();
4747 }
4848
4949 /* *
@@ -54,8 +54,8 @@ class UserPrefixes
5454 ndn::optional<uint64_t >
5555 getSeqNo (const ndn::Name& prefix) const
5656 {
57- auto it = m_prefixes .find (prefix);
58- if (it == m_prefixes .end ()) {
57+ auto it = prefixes .find (prefix);
58+ if (it == prefixes .end ()) {
5959 return ndn::nullopt ;
6060 }
6161 return it->second ;
@@ -64,18 +64,18 @@ class UserPrefixes
6464 /* *
6565 * @brief Adds a user node for synchronization
6666 *
67- * Initializes m_prefixes [prefix] to zero
67+ * Initializes prefixes [prefix] to zero
6868 *
6969 * @param prefix the user node to be added
7070 * @return true if the prefix was added, false if the prefix was already in
71- * m_prefixes .
71+ * prefixes .
7272 */
7373 bool
7474 addUserNode (const ndn::Name& prefix);
7575
7676 /* *
7777 * @brief Remove the user node from synchronization. If the prefix is not in
78- * m_prefixes , then do nothing.
78+ * prefixes , then do nothing.
7979 *
8080 * The caller should first check isUserNode(prefix) and erase the prefix from
8181 * the IBLT and other maps if needed.
@@ -86,7 +86,7 @@ class UserPrefixes
8686 removeUserNode (const ndn::Name& prefix);
8787
8888 /* *
89- * @brief Update m_prefixes with the given prefix and sequence number. This
89+ * @brief Update prefixes with the given prefix and sequence number. This
9090 * does not update the IBLT. This logs a message for the update.
9191 *
9292 * Whoever calls this needs to make sure that isUserNode(prefix) is true.
@@ -97,15 +97,15 @@ class UserPrefixes
9797 * prefix. If this method returns true and oldSeqNo is not zero, the caller
9898 * can remove the old prefix from the IBLT.
9999 * @return True if the sequence number was updated, false if the prefix was
100- * not in m_prefixes , or if the seqNo is less than or equal to the old
100+ * not in prefixes , or if the seqNo is less than or equal to the old
101101 * sequence number. If this returns false, the caller should not update the
102102 * IBLT.
103103 */
104104 bool
105105 updateSeqNo (const ndn::Name& prefix, uint64_t seqNo, uint64_t & oldSeqNo);
106106
107107 // prefix and sequence number
108- std::map <ndn::Name, uint64_t > m_prefixes ;
108+ std::map <ndn::Name, uint64_t > prefixes ;
109109};
110110
111111} // namespace psync
0 commit comments