represents a base class for CS entry
More...
#include <daemon/table/cs-entry.hpp>
represents a base class for CS entry
Definition at line 36 of file cs-entry.hpp.
bool nfd::cs::Entry::canSatisfy |
( |
const Interest & |
interest | ) |
const |
determines whether Interest can be satisified by the stored Data
- Note
- ChildSelector is not considered
- Precondition
- hasData()
Definition at line 55 of file cs-entry.cpp.
const Data& nfd::cs::Entry::getData |
( |
| ) |
const |
|
inline |
const Name& nfd::cs::Entry::getFullName |
( |
| ) |
const |
|
inline |
- Returns
- full name (including implicit digest) of the stored Data
- Precondition
- hasData()
Definition at line 63 of file cs-entry.hpp.
const Name& nfd::cs::Entry::getName |
( |
| ) |
const |
|
inline |
const time::steady_clock::TimePoint& nfd::cs::Entry::getStaleTime |
( |
| ) |
const |
|
inline |
- Returns
- the absolute time when the stored Data becomes stale
- Note
- if the returned TimePoint is in the past, the Data is stale
- Precondition
- hasData()
Definition at line 84 of file cs-entry.hpp.
bool nfd::cs::Entry::hasData |
( |
| ) |
const |
|
inline |
- Returns
- true if a Data packet is stored
Definition at line 107 of file cs-entry.hpp.
bool nfd::cs::Entry::isStale |
( |
| ) |
const |
bool nfd::cs::Entry::isUnsolicited |
( |
| ) |
const |
|
inline |
void nfd::cs::Entry::reset |
( |
| ) |
|
clears the entry
- Postcondition
- !hasData()
Definition at line 70 of file cs-entry.cpp.
void nfd::cs::Entry::setData |
( |
shared_ptr< const Data > |
data, |
|
|
bool |
isUnsolicited |
|
) |
| |
void nfd::cs::Entry::setData |
( |
const Data & |
data, |
|
|
bool |
isUnsolicited |
|
) |
| |
|
inline |
void nfd::cs::Entry::updateStaleTime |
( |
| ) |
|
refreshes stale time relative to current time
Definition at line 48 of file cs-entry.cpp.