NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::cs::Entry Class Reference

NDN content store entry. More...

#include <ndn-content-store.h>

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

Public Member Functions

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

Detailed Description

NDN content store entry.

Definition at line 57 of file ndn-content-store.h.

Constructor & Destructor Documentation

ns3::ndn::cs::Entry::Entry ( Ptr< ContentStore cs,
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 63 of file ndn-content-store.cc.

Member Function Documentation

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

Get Data of the stored entry.

Returns
Data of the stored entry

Definition at line 76 of file ndn-content-store.cc.

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

Get prefix of the stored entry.

Returns
prefix of the stored entry

Definition at line 70 of file ndn-content-store.cc.


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