a ContentStore entry More...
#include <cs-entry.hpp>
Public Member Functions | |
const Data & | getData () const |
return the stored Data More... | |
const Name & | getName () const |
return stored Data name More... | |
const Name & | getFullName () const |
return full name (including implicit digest) of the stored Data More... | |
bool | isUnsolicited () const |
return whether the stored Data is unsolicited More... | |
bool | isFresh () const |
check if the stored Data is fresh now More... | |
bool | canSatisfy (const Interest &interest) const |
determine whether Interest can be satisified by the stored Data More... | |
Entry (shared_ptr< const Data > data, bool isUnsolicited) | |
void | updateFreshUntil () |
recalculate when the entry would become non-fresh, relative to current time More... | |
void | clearUnsolicited () |
clear 'unsolicited' flag More... | |
a ContentStore entry
Definition at line 36 of file cs-entry.hpp.
nfd::cs::Entry::Entry | ( | shared_ptr< const Data > | data, |
bool | isUnsolicited | ||
) |
Definition at line 31 of file cs-entry.cpp.
References updateFreshUntil().
|
inline |
return the stored Data
Definition at line 42 of file cs-entry.hpp.
Referenced by nfd::cs::operator<().
|
inline |
return stored Data name
Definition at line 50 of file cs-entry.hpp.
|
inline |
return full name (including implicit digest) of the stored Data
Definition at line 58 of file cs-entry.hpp.
|
inline |
return whether the stored Data is unsolicited
Definition at line 66 of file cs-entry.hpp.
Referenced by nfd::cs::Cs::insert().
bool nfd::cs::Entry::isFresh | ( | ) | const |
check if the stored Data is fresh now
Definition at line 39 of file cs-entry.cpp.
References ndn::time::steady_clock::now().
bool nfd::cs::Entry::canSatisfy | ( | const Interest & | interest | ) | const |
determine whether Interest can be satisified by the stored Data
Definition at line 51 of file cs-entry.cpp.
References ndn::Interest::getMustBeFresh(), and ndn::Interest::matchesData().
void nfd::cs::Entry::updateFreshUntil | ( | ) |
recalculate when the entry would become non-fresh, relative to current time
Definition at line 45 of file cs-entry.cpp.
References ndn::time::steady_clock::now().
Referenced by Entry(), and nfd::cs::Cs::insert().
|
inline |
clear 'unsolicited' flag
Definition at line 92 of file cs-entry.hpp.
Referenced by nfd::cs::Cs::insert().