Special content store realization that honors Freshness parameter in Data packets. More...
#include <content-store-with-freshness.h>
Public Types | |
typedef ContentStoreImpl < ndnSIM::multi_policy_traits < boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > | super |
typedef super::policy_container::template index< 1 >::type | freshness_policy_container |
Public Types inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > | |
typedef ndnSIM::trie_with_policy< Name, ndnSIM::smart_pointer_payload_traits < EntryImpl< ContentStoreImpl < ndnSIM::multi_policy_traits < boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > >, Entry > , ndnSIM::multi_policy_traits < boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > | super |
typedef EntryImpl < ContentStoreImpl < ndnSIM::multi_policy_traits < boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > > | entry |
Public Member Functions | |
virtual void | Print (std::ostream &os) const |
Print out content store entries. | |
virtual bool | Add (Ptr< const Data > data) |
Add a new content to the content store. More... | |
Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > | |
virtual Ptr< Data > | Lookup (Ptr< const Interest > interest) |
Find corresponding CS entry for the given interest. More... | |
virtual uint32_t | GetSize () const |
Get number of entries in content store. | |
virtual Ptr< Entry > | Begin () |
Return first element of content store (no order guaranteed) | |
virtual Ptr< Entry > | End () |
Return item next after last (no order guaranteed) | |
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. | |
virtual Ptr< cs::Entry > | Next (Ptr< cs::Entry >)=0 |
Advance the iterator. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Static Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > > | |
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. | |
Special content store realization that honors Freshness parameter in Data packets.
Definition at line 38 of file content-store-with-freshness.h.
|
inlinevirtual |
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) |
Reimplemented from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< Policy, ndnSIM::freshness_policy_traits > > >.
Definition at line 97 of file content-store-with-freshness.h.