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

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

#include <content-store-nocache.hpp>

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

Public Member Functions

 Nocache ()
 Default constructor. More...
 
virtual ~Nocache ()
 Virtual destructor. More...
 
virtual shared_ptr< Data > Lookup (shared_ptr< const Interest > interest)
 Find corresponding CS entry for the given interest. More...
 
virtual bool Add (shared_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. More...
 
virtual uint32_t GetSize () const
 Get number of entries in content store. More...
 
virtual Ptr< cs::EntryBegin ()
 Return first element of content store (no order guaranteed) More...
 
virtual Ptr< cs::EntryEnd ()
 Return item next after last (no order guaranteed) More...
 
virtual Ptr< cs::EntryNext (Ptr< cs::Entry >)
 
- Public Member Functions inherited from ns3::ndn::ContentStore
virtual ~ContentStore ()
 Virtual destructor. More...
 
virtual Ptr< cs::EntryNext (Ptr< cs::Entry >)=0
 Advance the iterator. More...
 

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. More...
 

Additional Inherited Members

- Public Types inherited from ns3::ndn::ContentStore
typedef void(* CacheHitsCallback) (shared_ptr< const Interest >, shared_ptr< const Data >)
 
typedef void(* CacheMissesCallback) (shared_ptr< const Interest >)
 
- Protected Attributes inherited from ns3::ndn::ContentStore
TracedCallback< shared_ptr< const Interest >, shared_ptr< const Data > > m_cacheHitsTrace
 trace of cache hits More...
 
TracedCallback< shared_ptr< const Interest > > m_cacheMissesTrace
 trace of cache misses More...
 

Detailed Description

Implementation of ContentStore that completely disables caching.

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
    Callback signature: ns3::ndn::ContentStore::CacheHitsCallback
  • CacheMisses: Trace called every time there is a cache miss
    Callback signature: ns3::ndn::ContentStrore::CacheMissesCallback

Size of this type is 80 bytes (on a 64-bit architecture).

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

Constructor & Destructor Documentation

ns3::ndn::cs::Nocache::Nocache ( )

Default constructor.

Definition at line 44 of file content-store-nocache.cpp.

ns3::ndn::cs::Nocache::~Nocache ( )
virtual

Virtual destructor.

Definition at line 48 of file content-store-nocache.cpp.

Member Function Documentation

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

Interface ID.

Returns
interface ID

Definition at line 34 of file content-store-nocache.cpp.

shared_ptr< Data > ns3::ndn::cs::Nocache::Lookup ( shared_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 53 of file content-store-nocache.cpp.

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

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

Add a new content to the content store.

Returns
true if an existing entry was updated, false otherwise

Implements ns3::ndn::ContentStore.

Definition at line 60 of file content-store-nocache.cpp.

void ns3::ndn::cs::Nocache::Print ( std::ostream &  os) const
virtual

Print out content store entries.

Implements ns3::ndn::ContentStore.

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

uint32_t ns3::ndn::cs::Nocache::GetSize ( ) const
virtual

Get number of entries in content store.

Implements ns3::ndn::ContentStore.

Definition at line 71 of file content-store-nocache.cpp.

Ptr< cs::Entry > ns3::ndn::cs::Nocache::Begin ( )
virtual

Return first element of content store (no order guaranteed)

Implements ns3::ndn::ContentStore.

Definition at line 77 of file content-store-nocache.cpp.

Ptr< cs::Entry > ns3::ndn::cs::Nocache::End ( )
virtual

Return item next after last (no order guaranteed)

Implements ns3::ndn::ContentStore.

Definition at line 83 of file content-store-nocache.cpp.

Ptr< cs::Entry > ns3::ndn::cs::Nocache::Next ( Ptr< cs::Entry )
virtual

Definition at line 88 of file content-store-nocache.cpp.


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