Base implementation of NDN content store. More...
#include <content-store-impl.hpp>


Public Types | |
| typedef ndnSIM::trie_with_policy< Name, ndnSIM::smart_pointer_payload_traits< EntryImpl< ContentStoreImpl< Policy > >, Entry >, Policy > | super |
| typedef EntryImpl< ContentStoreImpl< Policy > > | entry |
| typedef void(* | CsEntryCallback) (Ptr< const Entry >) |
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 >) |
Public Member Functions | |
| ContentStoreImpl () | |
| virtual | ~ContentStoreImpl () |
| 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< Entry > | Begin () |
| Return first element of content store (no order guaranteed) More... | |
| virtual Ptr< Entry > | End () |
| Return item next after last (no order guaranteed) More... | |
| virtual Ptr< Entry > | Next (Ptr< Entry >) |
| const super::policy_container & | GetPolicy () const |
| super::policy_container & | GetPolicy () |
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 () |
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 | |
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... | |
Base implementation of NDN content store.
Definition at line 82 of file content-store-impl.hpp.
| typedef ndnSIM:: trie_with_policy<Name, ndnSIM::smart_pointer_payload_traits<EntryImpl<ContentStoreImpl<Policy> >, Entry>, Policy> ns3::ndn::cs::ContentStoreImpl< Policy >::super |
Definition at line 93 of file content-store-impl.hpp.
| typedef EntryImpl<ContentStoreImpl<Policy> > ns3::ndn::cs::ContentStoreImpl< Policy >::entry |
Definition at line 95 of file content-store-impl.hpp.
| typedef void(* ns3::ndn::cs::ContentStoreImpl< Policy >::CsEntryCallback) (Ptr< const Entry >) |
Definition at line 141 of file content-store-impl.hpp.
|
inline |
Definition at line 100 of file content-store-impl.hpp.
|
inlinevirtual |
Definition at line 101 of file content-store-impl.hpp.
|
static |
Definition at line 167 of file content-store-impl.hpp.
|
inlinevirtual |
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 206 of file content-store-impl.hpp.
|
inlinevirtual |
Add a new content to the content store.
Implements ns3::ndn::ContentStore.
Reimplemented in ns3::ndn::cs::ContentStoreWithFreshness< Policy >, ns3::ndn::cs::ContentStoreWithFreshness< fifo_policy_traits >, ns3::ndn::cs::ContentStoreWithFreshness< lfu_policy_traits >, ns3::ndn::cs::ContentStoreWithFreshness< random_policy_traits >, and ns3::ndn::cs::ContentStoreWithFreshness< lru_policy_traits >.
Definition at line 233 of file content-store-impl.hpp.
|
inlinevirtual |
Print out content store entries.
Implements ns3::ndn::ContentStore.
Reimplemented in ns3::ndn::cs::ContentStoreWithStats< Policy >, ns3::ndn::cs::ContentStoreWithStats< fifo_policy_traits >, ns3::ndn::cs::ContentStoreWithStats< lfu_policy_traits >, ns3::ndn::cs::ContentStoreWithStats< random_policy_traits >, ns3::ndn::cs::ContentStoreWithStats< lru_policy_traits >, ns3::ndn::cs::ContentStoreWithFreshness< Policy >, ns3::ndn::cs::ContentStoreWithFreshness< fifo_policy_traits >, ns3::ndn::cs::ContentStoreWithFreshness< lfu_policy_traits >, ns3::ndn::cs::ContentStoreWithFreshness< random_policy_traits >, and ns3::ndn::cs::ContentStoreWithFreshness< lru_policy_traits >.
Definition at line 259 of file content-store-impl.hpp.
|
virtual |
Get number of entries in content store.
Implements ns3::ndn::ContentStore.
Definition at line 283 of file content-store-impl.hpp.
|
virtual |
Return first element of content store (no order guaranteed)
Implements ns3::ndn::ContentStore.
Definition at line 290 of file content-store-impl.hpp.
|
virtual |
Return item next after last (no order guaranteed)
Implements ns3::ndn::ContentStore.
Definition at line 307 of file content-store-impl.hpp.
|
virtual |
Definition at line 314 of file content-store-impl.hpp.
References ns3::ndn::cs::EntryImpl< CS >::to_iterator().
|
inline |
Definition at line 129 of file content-store-impl.hpp.
|
inline |
Definition at line 135 of file content-store-impl.hpp.