A ContentStore entry. More...
#include <daemon/table/cs-entry.hpp>
Public Member Functions | |
Entry (shared_ptr< const Data > data, bool isUnsolicited) | |
bool | canSatisfy (const Interest &interest) const |
Determine whether Interest can be satisified by the stored Data. More... | |
void | clearUnsolicited () |
Clear 'unsolicited' flag. More... | |
const Data & | getData () const |
Return the stored Data. More... | |
const Name & | getFullName () const |
Return full name (including implicit digest) of the stored Data. More... | |
const Name & | getName () const |
Return stored Data name. More... | |
bool | isFresh () const |
Check if the stored Data is fresh now. More... | |
bool | isUnsolicited () const |
Return whether the stored Data is unsolicited. More... | |
void | updateFreshUntil () |
Recalculate when the entry would become non-fresh, relative to current time. More... | |
A ContentStore entry.
Definition at line 37 of file cs-entry.hpp.
nfd::cs::Entry::Entry | ( | shared_ptr< const Data > | data, |
bool | isUnsolicited | ||
) |
Definition at line 30 of file cs-entry.cpp.
bool nfd::cs::Entry::canSatisfy | ( | const Interest & | interest | ) | const |
Determine whether Interest can be satisified by the stored Data.
Definition at line 50 of file cs-entry.cpp.
|
inline |
Clear 'unsolicited' flag.
Definition at line 93 of file cs-entry.hpp.
|
inline |
Return the stored Data.
Definition at line 43 of file cs-entry.hpp.
|
inline |
Return full name (including implicit digest) of the stored Data.
Definition at line 59 of file cs-entry.hpp.
|
inline |
Return stored Data name.
Definition at line 51 of file cs-entry.hpp.
bool nfd::cs::Entry::isFresh | ( | ) | const |
Check if the stored Data is fresh now.
Definition at line 38 of file cs-entry.cpp.
|
inline |
Return whether the stored Data is unsolicited.
Definition at line 67 of file cs-entry.hpp.
void nfd::cs::Entry::updateFreshUntil | ( | ) |
Recalculate when the entry would become non-fresh, relative to current time.
Definition at line 44 of file cs-entry.cpp.