33 , m_isUnsolicited(isUnsolicited)
67 bool queryIsFullName = !queryName.
empty() && queryName[-1].isImplicitSha256Digest();
69 int cmp = queryIsFullName ?
77 if (queryIsFullName) {
bool getMustBeFresh() const noexcept
Check whether the MustBeFresh element is present.
bool operator<(const Entry &entry, const Name &queryName)
static time_point now() noexcept
static int compareQueryWithData(const Name &queryName, const Data &data)
Represents an Interest packet.
bool isFresh() const
check if the stored Data is fresh now
int compare(const Name &other) const
Compare this to the other Name using NDN canonical ordering.
NDN_CXX_NODISCARD bool empty() const
Checks if the name is empty, i.e.
Copyright (c) 2011-2015 Regents of the University of California.
bool matchesData(const Data &data) const
Check if Interest can be satisfied by data.
const Name & getName() const noexcept
Get name.
Represents an absolute name.
const Name & getFullName() const
Get full name including implicit digest.
const Data & getData() const
return the stored Data
size_t size() const
Returns the number of components.
Entry(shared_ptr< const Data > data, bool isUnsolicited)
Represents a Data packet.
static int compareDataWithData(const Data &lhs, const Data &rhs)
bool canSatisfy(const Interest &interest) const
determine whether Interest can be satisified by the stored Data
void updateFreshUntil()
recalculate when the entry would become non-fresh, relative to current time