NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ns3::ndn::cs::Probability::Lfu Class Reference

Content Store with freshness implementing Least Frequently Used cache replacement policy. More...

#include <introspected-doxygen.hpp>

Inheritance diagram for ns3::ndn::cs::Probability::Lfu:
Collaboration diagram for ns3::ndn::cs::Probability::Lfu:

Additional Inherited Members

- Public Types inherited from ns3::ndn::cs::ContentStoreWithProbability< lfu_policy_traits >
typedef ContentStoreImpl
< ndnSIM::multi_policy_traits
< boost::mpl::vector2
< ndnSIM::probability_policy_traits,
lfu_policy_traits > > > 
super
 
typedef
super::policy_container::template
index< 0 >::type 
probability_policy_container
 
- Public Types inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< ndnSIM::probability_policy_traits, lfu_policy_traits > > >
typedef
ndnSIM::trie_with_policy< Name,
ndnSIM::smart_pointer_payload_traits
< EntryImpl< ContentStoreImpl
< ndnSIM::multi_policy_traits
< boost::mpl::vector2
< ndnSIM::probability_policy_traits,
lfu_policy_traits >
> > >, Entry >
, ndnSIM::multi_policy_traits
< boost::mpl::vector2
< ndnSIM::probability_policy_traits,
lfu_policy_traits > > > 
super
 
typedef EntryImpl
< ContentStoreImpl
< ndnSIM::multi_policy_traits
< boost::mpl::vector2
< ndnSIM::probability_policy_traits,
lfu_policy_traits > > > > 
entry
 
- Public Member Functions inherited from ns3::ndn::cs::ContentStoreWithProbability< lfu_policy_traits >
 ContentStoreWithProbability ()
 
- Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< ndnSIM::probability_policy_traits, lfu_policy_traits > > >
 ContentStoreImpl ()
 
virtual ~ContentStoreImpl ()
 
virtual shared_ptr< DataLookup (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< EntryBegin ()
 Return first element of content store (no order guaranteed) More...
 
virtual Ptr< EntryEnd ()
 Return item next after last (no order guaranteed) More...
 
virtual Ptr< EntryNext (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::EntryNext (Ptr< cs::Entry >)=0
 Advance the iterator. More...
 
- Static Public Member Functions inherited from ns3::ndn::cs::ContentStoreWithProbability< lfu_policy_traits >
static TypeId GetTypeId ()
 
- Static Public Member Functions inherited from ns3::ndn::cs::ContentStoreImpl< ndnSIM::multi_policy_traits< boost::mpl::vector2< ndnSIM::probability_policy_traits, lfu_policy_traits > > >
static TypeId GetTypeId ()
 
- 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...
 
- 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

Content Store with freshness implementing Least Frequently Used cache replacement policy.

Doxygen introspection did not find any typical Config paths.

Attributes

  • CacheProbability: Set probability of caching in ContentStore. If 1, every content is cached. If 0, no content is cached.
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 1
    • Flags: construct write read

Attributes defined in parent class ns3::ndn::cs::ProbabilityImpl::Lfu

  • MaxSize: Set maximum number of entries in ContentStore. If 0, limit is not enforced
    • Set with class: ns3::UintegerValue
    • Underlying type: uint32_t 0:4294967295
    • Initial value: 100
    • Flags: construct write read

No TraceSources are defined for this type.

TraceSources defined in parent class ns3::ndn::cs::ProbabilityImpl::Lfu

  • DidAddEntry: Trace fired every time entry is successfully added to the cache

TraceSources defined in parent class ns3::ndn::ContentStore

  • CacheHits: Trace called every time there is a cache hit
  • CacheMisses: Trace called every time there is a cache miss

Definition at line 92 of file content-store-with-probability.cpp.


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