ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
ndn::InMemoryStorageEntry Class Reference

Represents an in-memory storage entry. More...

#include <ndn-cxx/ims/in-memory-storage-entry.hpp>

+ Inheritance diagram for ndn::InMemoryStorageEntry:
+ Collaboration diagram for ndn::InMemoryStorageEntry:

Public Member Functions

const DatagetData () const
 Returns the Data packet stored in the in-memory storage entry.
 
const NamegetFullName () const
 Returns the full name (including implicit digest) of the Data packet stored in the in-memory storage entry.
 
const NamegetName () const
 Returns the name of the Data packet stored in the in-memory storage entry.
 
bool isFresh () const
 Check if the data can satisfy an Interest with MustBeFresh.
 
void release ()
 Releases reference counts on shared objects.
 
void scheduleMarkStale (Scheduler &sched, time::nanoseconds after)
 Schedule an event to mark this entry as non-fresh.
 
void setData (const Data &data)
 Changes the content of in-memory storage entry.
 

Detailed Description

Represents an in-memory storage entry.

Definition at line 34 of file in-memory-storage-entry.hpp.

Member Function Documentation

◆ getData()

const Data & ndn::InMemoryStorageEntry::getData ( ) const
inline

Returns the Data packet stored in the in-memory storage entry.

Definition at line 57 of file in-memory-storage-entry.hpp.

◆ getFullName()

const Name & ndn::InMemoryStorageEntry::getFullName ( ) const
inline

Returns the full name (including implicit digest) of the Data packet stored in the in-memory storage entry.

Definition at line 49 of file in-memory-storage-entry.hpp.

◆ getName()

const Name & ndn::InMemoryStorageEntry::getName ( ) const
inline

Returns the name of the Data packet stored in the in-memory storage entry.

Definition at line 40 of file in-memory-storage-entry.hpp.

◆ isFresh()

bool ndn::InMemoryStorageEntry::isFresh ( ) const
inline

Check if the data can satisfy an Interest with MustBeFresh.

Definition at line 82 of file in-memory-storage-entry.hpp.

◆ release()

void ndn::InMemoryStorageEntry::release ( )

Releases reference counts on shared objects.

Definition at line 27 of file in-memory-storage-entry.cpp.

◆ scheduleMarkStale()

void ndn::InMemoryStorageEntry::scheduleMarkStale ( Scheduler sched,
time::nanoseconds  after 
)

Schedule an event to mark this entry as non-fresh.

Definition at line 34 of file in-memory-storage-entry.cpp.

◆ setData()

void ndn::InMemoryStorageEntry::setData ( const Data data)
inline

Changes the content of in-memory storage entry.

This method also allows data to satisfy Interest with MustBeFresh

Definition at line 67 of file in-memory-storage-entry.hpp.