NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 DataGetData () 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

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.

References ns3::ndn::Name.

Member Function Documentation

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.

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.

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: