#include <name-prefix-list.hpp>
Definition at line 32 of file name-prefix-list.hpp.
| nlsr::NamePrefixList::NamePrefixList |
( |
| ) |
|
| nlsr::NamePrefixList::NamePrefixList |
( |
const std::initializer_list< ndn::Name > & |
names | ) |
|
template<class ContainerType >
| nlsr::NamePrefixList::NamePrefixList |
( |
const ContainerType & |
names | ) |
|
|
inline |
| nlsr::NamePrefixList::~NamePrefixList |
( |
| ) |
|
| 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 136 of file name-prefix-list.cpp.
| std::list< ndn::Name > nlsr::NamePrefixList::getNames |
( |
| ) |
const |
| 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 142 of file name-prefix-list.cpp.
| 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 76 of file name-prefix-list.cpp.
| bool nlsr::NamePrefixList::operator== |
( |
const NamePrefixList & |
other | ) |
const |
| bool nlsr::NamePrefixList::remove |
( |
const ndn::Name & |
name, |
|
|
const std::string & |
source = "" |
|
) |
| |
| size_t nlsr::NamePrefixList::size |
( |
| ) |
const |
|
inline |
| void nlsr::NamePrefixList::sort |
( |
| ) |
|