Implementation of ContentStore that completely disables caching. More...
#include <content-store-nocache.hpp>
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::Entry > | Begin () |
Return first element of content store (no order guaranteed) More... | |
virtual Ptr< cs::Entry > | End () |
Return item next after last (no order guaranteed) More... | |
virtual Ptr< cs::Entry > | Next (Ptr< cs::Entry >) |
Public Member Functions inherited from ns3::ndn::ContentStore | |
virtual | ~ContentStore () |
Virtual destructor. More... | |
virtual Ptr< cs::Entry > | Next (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< ContentStore > | GetContentStore (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... | |
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.
Size of this type is 80 bytes (on a 64-bit architecture).
Definition at line 35 of file content-store-nocache.hpp.
ns3::ndn::cs::Nocache::Nocache | ( | ) |
Default constructor.
Definition at line 44 of file content-store-nocache.cpp.
|
virtual |
Virtual destructor.
Definition at line 48 of file content-store-nocache.cpp.
|
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 53 of file content-store-nocache.cpp.
References ns3::ndn::ContentStore::m_cacheMissesTrace.
|
virtual |
Add a new content to the content store.
Implements ns3::ndn::ContentStore.
Definition at line 60 of file content-store-nocache.cpp.
|
virtual |
Print out content store entries.
Implements ns3::ndn::ContentStore.
Definition at line 66 of file content-store-nocache.cpp.
|
virtual |
Get number of entries in content store.
Implements ns3::ndn::ContentStore.
Definition at line 71 of file content-store-nocache.cpp.
|
virtual |
Return first element of content store (no order guaranteed)
Implements ns3::ndn::ContentStore.
Definition at line 77 of file content-store-nocache.cpp.
|
virtual |
Return item next after last (no order guaranteed)
Implements ns3::ndn::ContentStore.
Definition at line 83 of file content-store-nocache.cpp.
Definition at line 88 of file content-store-nocache.cpp.