an Entry in ContentStore implementation More...
#include <cs-entry-impl.hpp>
Public Member Functions | |
EntryImpl (const Name &name) | |
construct Entry for query More... | |
EntryImpl (shared_ptr< const Data > data, bool isUnsolicited) | |
construct Entry for storage More... | |
void | unsetUnsolicited () |
bool | operator< (const EntryImpl &other) const |
Public Member Functions inherited from nfd::cs::Entry | |
const Data & | getData () const |
const Name & | getName () const |
const Name & | getFullName () const |
bool | isUnsolicited () const |
const time::steady_clock::TimePoint & | getStaleTime () const |
bool | isStale () const |
checks if the stored Data is stale now More... | |
bool | canSatisfy (const Interest &interest) const |
determines whether Interest can be satisified by the stored Data More... | |
bool | hasData () const |
void | setData (shared_ptr< const Data > data, bool isUnsolicited) |
replaces the stored Data More... | |
void | setData (const Data &data, bool isUnsolicited) |
replaces the stored Data More... | |
void | updateStaleTime () |
refreshes stale time relative to current time More... | |
void | reset () |
clears the entry More... | |
an Entry in ContentStore implementation
An Entry is either a stored Entry which contains a Data packet and related attributes, or a query Entry which contains a Name that is LessComparable to other stored/query Entry and is used to lookup a container of entries.
Definition at line 42 of file cs-entry-impl.hpp.
nfd::cs::EntryImpl::EntryImpl | ( | const Name & | name | ) |
construct Entry for query
Definition at line 31 of file cs-entry-impl.cpp.
nfd::cs::EntryImpl::EntryImpl | ( | shared_ptr< const Data > | data, |
bool | isUnsolicited | ||
) |
construct Entry for storage
Definition at line 37 of file cs-entry-impl.cpp.
References nfd::cs::Entry::isUnsolicited(), and nfd::cs::Entry::setData().
void nfd::cs::EntryImpl::unsetUnsolicited | ( | ) |
Definition at line 50 of file cs-entry-impl.cpp.
References nfd::cs::Entry::getData(), and nfd::cs::Entry::setData().
Referenced by nfd::cs::Cs::insert().
bool nfd::cs::EntryImpl::operator< | ( | const EntryImpl & | other | ) | const |
Definition at line 89 of file cs-entry-impl.cpp.
References nfd::cs::compareDataWithData(), nfd::cs::compareQueryWithData(), and nfd::cs::Entry::getData().