#include <name-prefix-list.hpp>
Definition at line 37 of file name-prefix-list.hpp.
◆ NamePair
◆ NamePairIndex
◆ NamePrefixList() [1/2]
nlsr::NamePrefixList::NamePrefixList |
( |
| ) |
|
|
default |
◆ NamePrefixList() [2/2]
nlsr::NamePrefixList::NamePrefixList |
( |
ndn::span< const ndn::Name > |
names | ) |
|
|
explicit |
◆ clear()
void nlsr::NamePrefixList::clear |
( |
| ) |
|
|
inline |
◆ countSources()
uint32_t nlsr::NamePrefixList::countSources |
( |
const ndn::Name & |
name | ) |
const |
Returns how many unique sources this name has.
- Return values
-
0 | if the name is not in the list, else the number of sources. |
Definition at line 115 of file name-prefix-list.cpp.
◆ getNames()
std::list< ndn::Name > nlsr::NamePrefixList::getNames |
( |
| ) |
const |
◆ getSources()
const std::vector< std::string > nlsr::NamePrefixList::getSources |
( |
const ndn::Name & |
name | ) |
const |
Returns the sources that this name has.
- Return values
-
an | empty vector if the name is not in the list, else a vector containing the sources. |
Definition at line 121 of file name-prefix-list.cpp.
◆ insert()
bool nlsr::NamePrefixList::insert |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "" |
|
) |
| |
inserts name into NamePrefixList
- Return values
-
true | If the name was successfully inserted. |
false | If the name could not be inserted. |
Definition at line 55 of file name-prefix-list.cpp.
◆ operator==()
bool nlsr::NamePrefixList::operator== |
( |
const NamePrefixList & |
other | ) |
const |
◆ remove()
bool nlsr::NamePrefixList::remove |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "" |
|
) |
| |
◆ size()
size_t nlsr::NamePrefixList::size |
( |
| ) |
const |
|
inline |
◆ sort()
void nlsr::NamePrefixList::sort |
( |
| ) |
|