**breaking** consolidate src/tlv/*lsa* into src/lsa/*lsa*
Lsa de/serialize functions are replaced by wireEncode/Decode.
Update LSA wire formats. Change TLV assignments as required.
Update nlsrc to print using new encoding.
refs: #4787
Change-Id: Ie8d40b7836d51ea5bb444c8db208dc2b3a0d1cec
diff --git a/src/name-prefix-list.hpp b/src/name-prefix-list.hpp
index 0912fb3..f5bac1d 100644
--- a/src/name-prefix-list.hpp
+++ b/src/name-prefix-list.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2017, The University of Memphis,
+ * Copyright (c) 2014-2020, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -22,13 +22,14 @@
#ifndef NLSR_NAME_PREFIX_LIST_HPP
#define NLSR_NAME_PREFIX_LIST_HPP
+#include "test-access-control.hpp"
+
#include <list>
#include <string>
-#include <boost/cstdint.hpp>
#include <ndn-cxx/name.hpp>
-
namespace nlsr {
+
class NamePrefixList
{
public:
@@ -44,6 +45,7 @@
NamePrefixList(const std::initializer_list<NamePrefixList::NamePair>& namesAndSources);
+PUBLIC_WITH_TESTS_ELSE_PRIVATE:
template<class ContainerType>
NamePrefixList(const ContainerType& names)
{
@@ -52,6 +54,7 @@
}
}
+public:
~NamePrefixList();
/*! \brief inserts name into NamePrefixList
@@ -98,6 +101,12 @@
const std::vector<std::string>
getSources(const ndn::Name& name) const;
+ void
+ clear()
+ {
+ m_names.clear();
+ }
+
private:
/*! Obtain an iterator to the entry matching name.