22 #ifndef NLSR_ADJACENCY_LIST_HPP
23 #define NLSR_ADJACENCY_LIST_HPP
36 using iterator = std::list<Adjacent>::iterator;
44 const std::list<Adjacent>&
95 return m_adjList.size();
123 return m_adjList.begin();
129 return m_adjList.end();
134 find(
const ndn::Name& adjName);
137 find(
const ndn::Name& adjName)
const;
140 std::list<Adjacent> m_adjList;
int32_t getNumOfActiveNeighbor() const
int32_t getTimedOutInterestCount(const ndn::Name &neighbor) const
void incrementTimedOutInterestCount(const ndn::Name &neighbor)
void setTimedOutInterestCount(const ndn::Name &neighbor, uint32_t count)
bool operator==(const AdjacencyList &adl) const
std::list< Adjacent >::iterator iterator
std::list< Adjacent >::const_iterator const_iterator
const_iterator begin() const
uint64_t getFaceId(const ndn::FaceUri &faceUri)
bool isAdjLsaBuildable(const uint32_t interestRetryNo) const
Determines whether this list can be used to build an adj. LSA.
bool insert(const Adjacent &adjacent)
std::list< Adjacent > & getAdjList()
const_iterator end() const
Adjacent::Status getStatusOfNeighbor(const ndn::Name &neighbor) const
bool isNeighbor(const ndn::Name &adjName) const
Adjacent getAdjacent(const ndn::Name &adjName) const
void setStatusOfNeighbor(const ndn::Name &neighbor, Adjacent::Status status)
AdjacencyList::iterator findAdjacent(const ndn::Name &adjName)
A neighbor reachable over a Face.
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.