NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::util::InMemoryStorageEntry Class Reference

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

#include <in-memory-storage-entry.hpp>

Inheritance diagram for ndn::util::InMemoryStorageEntry:
Collaboration diagram for ndn::util::InMemoryStorageEntry:

Public Member Functions

void release ()
 Releases reference counts on shared objects. More...
 
const NamegetName () const
 Returns the name of the Data packet stored in the in-memory storage entry. More...
 
const NamegetFullName () const
 Returns the full name (including implicit digest) of the Data packet stored in the in-memory storage entry. More...
 
const DatagetData () 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...
 

Detailed Description

Represents an in-memory storage entry.

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

Member Function Documentation

void ndn::util::InMemoryStorageEntry::release ( )

Releases reference counts on shared objects.

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

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

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

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

const Name& ndn::util::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 54 of file in-memory-storage-entry.hpp.

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

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

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

References setData().

Referenced by ndn::util::InMemoryStorage::find().

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

Changes the content of in-memory storage entry.

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

Referenced by getData().


The documentation for this class was generated from the following files: