23 #include <boost/cstdint.hpp> 25 #include <ndn-cxx/face.hpp> 26 #include <ndn-cxx/net/face-uri.hpp> 28 #ifndef NLSR_ADJACENT_HPP 29 #define NLSR_ADJACENT_HPP 53 Adjacent(
const ndn::Name& an,
const ndn::FaceUri& faceUri,
double lc,
54 Status s, uint32_t iton, uint64_t faceId);
83 uint64_t linkCost =
static_cast<uint64_t
>(ceil(m_linkCost));
108 return m_interestTimedOutNo;
114 m_interestTimedOutNo = iton;
136 return !(*
this == adjacent);
145 return m_name == adjacencyName;
151 return m_faceId == faceId;
157 return m_faceUri == faceUri;
170 ndn::FaceUri m_faceUri;
176 uint32_t m_interestTimedOutNo;
190 #endif // NLSR_ADJACENT_HPP bool operator==(const Adjacent &adjacent) const
Equality is when name, Face URI, and link cost are all equal.
const ndn::FaceUri & getFaceUri() const
static const float DEFAULT_LINK_COST
friend std::ostream & operator<<(std::ostream &os, const Adjacent &adjacent)
uint64_t getFaceId() const
bool compare(const ndn::Name &adjacencyName)
void setInterestTimedOutNo(uint32_t iton)
const ndn::Name & getName() const
void setFaceId(uint64_t faceId)
bool operator<(const Adjacent &adjacent) const
bool compareFaceUri(const ndn::FaceUri &faceUri)
A neighbor reachable over a Face.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void setFaceUri(const ndn::FaceUri &faceUri)
uint64_t getLinkCost() const
bool compareFaceId(const uint64_t faceId)
void setName(const ndn::Name &an)
void setLinkCost(double lc)
uint32_t getInterestTimedOutNo() const
bool operator!=(const Adjacent &adjacent) const