66 bool queryIsFullName = !queryName.empty() && queryName[-1].isImplicitSha256Digest();
68 int cmp = queryIsFullName ?
69 queryName.compare(0, queryName.size() - 1, data.getName()) :
70 queryName.compare(data.getName());
76 if (queryIsFullName) {
77 return queryName[-1].compare(data.getFullName()[-1]);
bool isFresh() const
Check if the stored Data is fresh now.
const Data & getData() const
Return the stored Data.
Entry(shared_ptr< const Data > data, bool isUnsolicited)
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.