#include <name-prefix-list.hpp>
Definition at line 102 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 54 of file name-prefix-list.cpp.
◆ getNames()
| std::list< ndn::Name > nlsr::NamePrefixList::getNames |
( |
| ) |
const |
◆ getPrefixInfo()
| std::list< PrefixInfo > nlsr::NamePrefixList::getPrefixInfo |
( |
| ) |
const |
◆ getPrefixInfoForName()
| const PrefixInfo & nlsr::NamePrefixList::getPrefixInfoForName |
( |
const ndn::Name & |
name | ) |
const |
◆ insert() [1/2]
| bool nlsr::NamePrefixList::insert |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "", |
|
|
double |
cost = 0 |
|
) |
| |
Inserts name and source combination.
- Return values
-
| true | Name and source combination is inserted. |
| false | Name and source combination already exists. |
Definition at line 38 of file name-prefix-list.cpp.
◆ insert() [2/2]
| bool nlsr::NamePrefixList::insert |
( |
const PrefixInfo & |
nameCost | ) |
|
◆ size()
| size_t nlsr::NamePrefixList::size |
( |
| ) |
const |
|
inline |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const NamePrefixList & |
list |
|
) |
| |
|
friend |
◆ operator==