22 #ifndef NLSR_NAME_PREFIX_LIST_HPP
23 #define NLSR_NAME_PREFIX_LIST_HPP
27 #include <ndn-cxx/name.hpp>
29 #include <boost/operators.hpp>
31 #include <initializer_list>
52 insert(
const ndn::Name& name,
const std::string& source =
"");
59 erase(
const ndn::Name& name,
const std::string& source =
"");
64 return m_namesSources.size();
75 getSources(
const ndn::Name& name)
const;
81 m_namesSources.clear();
96 std::map<ndn::Name, std::set<std::string>> m_namesSources;
bool erase(const ndn::Name &name, const std::string &source="")
Deletes name and source combination.
bool insert(const ndn::Name &name, const std::string &source="")
Inserts name and source combination.
friend std::ostream & operator<<(std::ostream &os, const NamePrefixList &list)
friend bool operator==(const NamePrefixList &lhs, const NamePrefixList &rhs)
std::list< ndn::Name > getNames() const
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.