blob: 9d32dde946163e9208fd8d41e063dccedd439b2c [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef NPL_HPP
2#define NPL_HPP
3
4#include <list>
5#include <string>
akmhoquec8a10f72014-04-25 18:42:55 -05006
akmhoque53353462014-04-22 08:43:45 -05007
8namespace nlsr {
akmhoquec8a10f72014-04-25 18:42:55 -05009class NamePrefixList
akmhoque53353462014-04-22 08:43:45 -050010{
11
12public:
akmhoquec8a10f72014-04-25 18:42:55 -050013 NamePrefixList();
akmhoque53353462014-04-22 08:43:45 -050014
akmhoquec8a10f72014-04-25 18:42:55 -050015 ~NamePrefixList();
akmhoque53353462014-04-22 08:43:45 -050016
17 int
18 insert(std::string& name);
19
20 int
21 remove(std::string& name);
22
23 void
24 sort();
25
26 int
27 getSize()
28 {
29 return m_nameList.size();
30 }
31
32 std::list<std::string>&
33 getNameList()
34 {
35 return m_nameList;
36 }
37
38 void
39 print();
40
41private:
42 std::list<std::string> m_nameList;
43
44};
45
46}//namespace nlsr
47
48#endif //NPL_HPP