Represents an in-memory storage entry. More...
#include <in-memory-storage-entry.hpp>
Public Member Functions | |
InMemoryStorageEntry () | |
Create an entry. More... | |
void | release () |
Releases reference counts on shared objects. More... | |
const Name & | getName () const |
Returns the name of the Data packet stored in the in-memory storage entry. More... | |
const Name & | getFullName () const |
Returns the full name (including implicit digest) of the Data packet stored in the in-memory storage entry. More... | |
const Data & | getData () const |
Returns the Data packet stored in the in-memory storage entry. More... | |
void | setData (const Data &data) |
Changes the content of in-memory storage entry. More... | |
void | scheduleMarkStale (Scheduler &sched, time::nanoseconds after) |
Schedule an event to mark this entry as non-fresh. More... | |
bool | isFresh () |
Check if the data can satisfy an interest with MustBeFresh. More... | |
Represents an in-memory storage entry.
Definition at line 33 of file in-memory-storage-entry.hpp.
ndn::InMemoryStorageEntry::InMemoryStorageEntry | ( | ) |
Create an entry.
Definition at line 26 of file in-memory-storage-entry.cpp.
void ndn::InMemoryStorageEntry::release | ( | ) |
Releases reference counts on shared objects.
Definition at line 32 of file in-memory-storage-entry.cpp.
References ndn::detail::ScopedCancelHandle< HandleT >::cancel().
|
inline |
Returns the name of the Data packet stored in the in-memory storage entry.
Definition at line 48 of file in-memory-storage-entry.hpp.
|
inline |
Returns the full name (including implicit digest) of the Data packet stored in the in-memory storage entry.
Definition at line 57 of file in-memory-storage-entry.hpp.
|
inline |
Returns the Data packet stored in the in-memory storage entry.
Definition at line 65 of file in-memory-storage-entry.hpp.
Referenced by ndn::InMemoryStorage::find().
void ndn::InMemoryStorageEntry::setData | ( | const Data & | data | ) |
Changes the content of in-memory storage entry.
This method also allows data to satisfy Interest with MustBeFresh
Definition at line 39 of file in-memory-storage-entry.cpp.
Referenced by ndn::InMemoryStorage::insert().
void ndn::InMemoryStorageEntry::scheduleMarkStale | ( | Scheduler & | sched, |
time::nanoseconds | after | ||
) |
Schedule an event to mark this entry as non-fresh.
Definition at line 46 of file in-memory-storage-entry.cpp.
References ndn::scheduler::Scheduler::schedule().
Referenced by ndn::InMemoryStorage::insert().
|
inline |
Check if the data can satisfy an interest with MustBeFresh.
Definition at line 85 of file in-memory-storage-entry.hpp.