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::Nocache Class Reference

Implementation of ContentStore that completely disables caching. More...

#include <content-store-nocache.h>

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

Public Member Functions

 Nocache ()
 Default constructor.
 
virtual ~Nocache ()
 Virtual destructor.
 
virtual Ptr< DataLookup (Ptr< const Interest > interest)
 Find corresponding CS entry for the given interest. More...
 
virtual bool Add (Ptr< const Data > data)
 Add a new content to the content store. More...
 
virtual void Print (std::ostream &os) const
 Print out content store entries.
 
virtual uint32_t GetSize () const
 Get number of entries in content store.
 
virtual Ptr< cs::EntryBegin ()
 Return first element of content store (no order guaranteed)
 
virtual Ptr< cs::EntryEnd ()
 Return item next after last (no order guaranteed)
 
virtual Ptr< cs::EntryNext (Ptr< cs::Entry >)
 
- Public Member Functions inherited from ns3::ndn::ContentStore
virtual ~ContentStore ()
 Virtual destructor.
 
virtual Ptr< cs::EntryNext (Ptr< cs::Entry >)=0
 Advance the iterator.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Interface ID. More...
 
- Static Public Member Functions inherited from ns3::ndn::ContentStore
static TypeId GetTypeId ()
 Interface ID. More...
 
static Ptr< ContentStoreGetContentStore (Ptr< Object > node)
 Static call to cheat python bindings.
 

Additional Inherited Members

- Protected Attributes inherited from ns3::ndn::ContentStore
TracedCallback< Ptr< const
Interest >, Ptr< const Data > > 
m_cacheHitsTrace
 trace of cache hits
 
TracedCallback< Ptr< const
Interest > > 
m_cacheMissesTrace
 trace of cache misses
 

Detailed Description

Implementation of ContentStore that completely disables caching.

Doxygen introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.

TraceSources defined in parent class ns3::ndn::ContentStore

  • CacheHits: Trace called every time there is a cache hit
  • CacheMisses: Trace called every time there is a cache miss

Definition at line 35 of file content-store-nocache.h.

Member Function Documentation

bool ns3::ndn::cs::Nocache::Add ( Ptr< const Data data)
virtual

Add a new content to the content store.

Parameters
headerFully parsed Data
packetFully formed Ndn packet to add to content store (will be copied and stripped down of headers)
Returns
true if an existing entry was updated, false otherwise

Implements ns3::ndn::ContentStore.

Definition at line 66 of file content-store-nocache.cc.

TypeId ns3::ndn::cs::Nocache::GetTypeId ( void  )
static

Interface ID.

Returns
interface ID

Definition at line 39 of file content-store-nocache.cc.

Ptr< Data > ns3::ndn::cs::Nocache::Lookup ( Ptr< const Interest interest)
virtual

Find corresponding CS entry for the given interest.

Parameters
interestInterest for which matching content store entry will be searched

If an entry is found, it is promoted to the top of most recent used entries index,

See also
m_contentStore

Implements ns3::ndn::ContentStore.

Definition at line 59 of file content-store-nocache.cc.

References ns3::ndn::ContentStore::m_cacheMissesTrace.


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