#include <adjacency-list.hpp>
Definition at line 33 of file adjacency-list.hpp.
nlsr::AdjacencyList::AdjacencyList |
( |
| ) |
|
nlsr::AdjacencyList::~AdjacencyList |
( |
| ) |
|
Copies the adjacencies in a list to this one.
- Parameters
-
adl | The adjacency list, the entries of which we want to copy into this object. |
Copies the entries contained in one list into this object.
Definition at line 54 of file adjacency-list.cpp.
template<typename T = float>
void nlsr::AdjacencyList::findAdjacent |
( |
const std::string & |
faceUri | ) |
|
|
inline |
Hack to stop developers from using this function.
It is here so that faceUri cannot be passed in as string, converted to Name and findAdjacent(Name) be used. So when faceUri is passed as string this will cause a compile error
Definition at line 146 of file adjacency-list.hpp.
Adjacent nlsr::AdjacencyList::getAdjacent |
( |
const ndn::Name & |
adjName | ) |
|
std::list< Adjacent > & nlsr::AdjacencyList::getAdjList |
( |
| ) |
|
const std::list< Adjacent > & nlsr::AdjacencyList::getAdjList |
( |
| ) |
const |
uint64_t nlsr::AdjacencyList::getFaceId |
( |
const ndn::FaceUri & |
faceUri | ) |
|
int32_t nlsr::AdjacencyList::getNumOfActiveNeighbor |
( |
| ) |
const |
Adjacent::Status nlsr::AdjacencyList::getStatusOfNeighbor |
( |
const ndn::Name & |
neighbor | ) |
const |
int32_t nlsr::AdjacencyList::getTimedOutInterestCount |
( |
const ndn::Name & |
neighbor | ) |
const |
void nlsr::AdjacencyList::incrementTimedOutInterestCount |
( |
const ndn::Name & |
neighbor | ) |
|
int32_t nlsr::AdjacencyList::insert |
( |
Adjacent & |
adjacent | ) |
|
Inserts an adjacency into the list.
- Parameters
-
adjacent | The adjacency that we want to add to this list. |
- Return values
-
0 | Indicates success. |
1 | Indicates failure. |
This function attempts to insert the supplied adjacency into this object, which is an adjacency list.
Definition at line 43 of file adjacency-list.cpp.
bool nlsr::AdjacencyList::isAdjLsaBuildable |
( |
const uint32_t |
interestRetryNo | ) |
const |
Determines whether this list can be used to build an adj. LSA.
- Parameters
-
interestRetryNo | The maximum number of hello-interest retries to contact a neighbor. |
- Returns
- Returns a boolean indicating whether this list can be used to build an adj. LSA.
Determines whether this adjacency list object could be used to build an adjacency LSA. An LSA is buildable when the status of all neighbors is known. A neighbor's status is known when their status is ACTIVE, or INACTIVE and some number of hello interests (specified by nlsr::ConfParameter::getInterestRetryNumber()) have failed. To be explicit, a neighbor's status is unknown if we are still sending hello interests.
Definition at line 163 of file adjacency-list.cpp.
bool nlsr::AdjacencyList::isNeighbor |
( |
const ndn::Name & |
adjName | ) |
const |
bool nlsr::AdjacencyList::operator== |
( |
const AdjacencyList & |
adl | ) |
const |
void nlsr::AdjacencyList::reset |
( |
| ) |
|
|
inline |
void nlsr::AdjacencyList::setStatusOfNeighbor |
( |
const ndn::Name & |
neighbor, |
|
|
Adjacent::Status |
status |
|
) |
| |
void nlsr::AdjacencyList::setTimedOutInterestCount |
( |
const ndn::Name & |
neighbor, |
|
|
uint32_t |
count |
|
) |
| |
size_t nlsr::AdjacencyList::size |
( |
| ) |
const |
|
inline |
void nlsr::AdjacencyList::writeLog |
( |
| ) |
|