#include <name-prefix-list.hpp>
Definition at line 32 of file name-prefix-list.hpp.
◆ NamePair
◆ NamePairIndex
◆ NamePrefixList() [1/4]
| nlsr::NamePrefixList::NamePrefixList |
( |
| ) |
|
|
default |
◆ NamePrefixList() [2/4]
| nlsr::NamePrefixList::NamePrefixList |
( |
const std::initializer_list< ndn::Name > & |
names | ) |
|
◆ NamePrefixList() [3/4]
◆ NamePrefixList() [4/4]
template<class ContainerType >
| nlsr::NamePrefixList::NamePrefixList |
( |
const ContainerType & |
names | ) |
|
|
inline |
◆ ~NamePrefixList()
| nlsr::NamePrefixList::~NamePrefixList |
( |
| ) |
|
◆ 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 131 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 137 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 71 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 |
( |
| ) |
|