NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::cs::Entry Class Reference

NDN content store entry. More...

#include <ndn-content-store.hpp>

Inheritance diagram for ns3::ndn::cs::Entry:
Collaboration diagram for ns3::ndn::cs::Entry:

Public Member Functions

 Entry (Ptr< ContentStore > cs, shared_ptr< const Data > data)
 Construct content store entry. More...
 
const NameGetName () const
 Get prefix of the stored entry. More...
 
shared_ptr< const Data > GetData () const
 Get Data of the stored entry. More...
 
Ptr< ContentStoreGetContentStore ()
 Get pointer to access store, to which this entry is added. More...
 

Detailed Description

NDN content store entry.

Definition at line 54 of file ndn-content-store.hpp.

Constructor & Destructor Documentation

◆ Entry()

ns3::ndn::cs::Entry::Entry ( Ptr< ContentStore cs,
shared_ptr< const Data >  data 
)

Construct content store entry.

Parameters
headerParsed Data header
packetOriginal Ndn packet

The constructor will make a copy of the supplied packet and calls RemoveHeader and RemoveTail on the copy.

Definition at line 59 of file ndn-content-store.cpp.

Member Function Documentation

◆ GetName()

const Name & ns3::ndn::cs::Entry::GetName ( ) const

Get prefix of the stored entry.

Returns
prefix of the stored entry

Definition at line 66 of file ndn-content-store.cpp.

◆ GetData()

shared_ptr< const Data > ns3::ndn::cs::Entry::GetData ( ) const

Get Data of the stored entry.

Returns
Data of the stored entry

Definition at line 72 of file ndn-content-store.cpp.

◆ GetContentStore()

Ptr< ContentStore > ns3::ndn::cs::Entry::GetContentStore ( )

Get pointer to access store, to which this entry is added.

Definition at line 78 of file ndn-content-store.cpp.


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