Implementation of ContentStore that completely disables caching. More...
#include <content-store-nocache.h>
Public Member Functions | |
Nocache () | |
Default constructor. | |
virtual | ~Nocache () |
Virtual destructor. | |
virtual Ptr< Data > | Lookup (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::Entry > | Begin () |
Return first element of content store (no order guaranteed) | |
virtual Ptr< cs::Entry > | End () |
Return item next after last (no order guaranteed) | |
virtual Ptr< cs::Entry > | Next (Ptr< cs::Entry >) |
Public Member Functions inherited from ns3::ndn::ContentStore | |
virtual | ~ContentStore () |
Virtual destructor. | |
virtual Ptr< cs::Entry > | Next (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< ContentStore > | GetContentStore (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 | |
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.
Definition at line 35 of file content-store-nocache.h.
|
virtual |
Add a new content to the content store.
header | Fully parsed Data |
packet | Fully formed Ndn packet to add to content store (will be copied and stripped down of headers) |
Implements ns3::ndn::ContentStore.
Definition at line 66 of file content-store-nocache.cc.
|
static |
Find corresponding CS entry for the given interest.
interest | Interest 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,
Implements ns3::ndn::ContentStore.
Definition at line 59 of file content-store-nocache.cc.
References ns3::ndn::ContentStore::m_cacheMissesTrace.