#include <name-prefix-list.hpp>
|
| NamePrefixList () |
|
| NamePrefixList (std::initializer_list< ndn::Name > names) |
|
void | clear () |
|
bool | erase (const ndn::Name &name, const std::string &source="") |
| Deletes name and source combination. More...
|
|
std::list< ndn::Name > | getNames () const |
|
bool | insert (const ndn::Name &name, const std::string &source="") |
| Inserts name and source combination. More...
|
|
size_t | size () const |
|
Definition at line 39 of file name-prefix-list.hpp.
◆ NamePrefixList() [1/2]
nlsr::NamePrefixList::NamePrefixList |
( |
| ) |
|
|
default |
◆ NamePrefixList() [2/2]
nlsr::NamePrefixList::NamePrefixList |
( |
std::initializer_list< ndn::Name > |
names | ) |
|
|
explicit |
◆ clear()
void nlsr::NamePrefixList::clear |
( |
| ) |
|
|
inline |
◆ erase()
bool nlsr::NamePrefixList::erase |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "" |
|
) |
| |
Deletes name and source combination.
- Return values
-
true | Name and source combination is deleted. |
false | Name and source combination does not exist. |
Definition at line 44 of file name-prefix-list.cpp.
◆ getNames()
std::list< ndn::Name > nlsr::NamePrefixList::getNames |
( |
| ) |
const |
◆ insert()
bool nlsr::NamePrefixList::insert |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "" |
|
) |
| |
Inserts name and source combination.
- Return values
-
true | Name and source combination is inserted. |
false | Name and source combination already exists. |
Definition at line 37 of file name-prefix-list.cpp.
◆ size()
size_t nlsr::NamePrefixList::size |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const NamePrefixList & |
list |
|
) |
| |
|
friend |
◆ operator==