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();
132 return m_adjList.begin();
138 return m_adjList.end();
143 find(
const ndn::Name& adjName);
146 find(
const ndn::Name& adjName)
const;
149 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
Adjacent getAdjacent(const ndn::Name &adjName)
std::list< Adjacent >::iterator iterator
std::list< Adjacent >::const_iterator const_iterator
void findAdjacent(const std::string &)=delete
Hack to stop developers from using this function.
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
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.