NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::cs::priority_fifo::PriorityFifoPolicy Class Reference

Priority Fifo cs replacement policy. More...

#include <cs-policy-priority-fifo.hpp>

Inheritance diagram for nfd::cs::priority_fifo::PriorityFifoPolicy:
Collaboration diagram for nfd::cs::priority_fifo::PriorityFifoPolicy:

Public Member Functions

 PriorityFifoPolicy ()
 
virtual ~PriorityFifoPolicy ()
 
- Public Member Functions inherited from nfd::cs::Policy
 Policy (const std::string &policyName)
 
virtual ~Policy ()
 
const std::string & getName () const
 
CsgetCs () const
 gets cs More...
 
void setCs (Cs *cs)
 sets cs More...
 
size_t getLimit () const
 gets hard limit (in number of entries) More...
 
void setLimit (size_t nMaxEntries)
 sets hard limit (in number of entries) More...
 
void afterInsert (iterator i)
 invoked by CS after a new entry is inserted More...
 
void afterRefresh (iterator i)
 invoked by CS after an existing entry is refreshed by same Data More...
 
void beforeErase (iterator i)
 invoked by CS before an entry is erased due to management command More...
 
void beforeUse (iterator i)
 invoked by CS before an entry is used to match a lookup More...
 

Static Public Attributes

static const std::string POLICY_NAME = "fifo"
 

Additional Inherited Members

- Public Attributes inherited from nfd::cs::Policy
signal::Signal< Policy, iteratorbeforeEvict
 emits when an entry is being evicted More...
 

Detailed Description

Priority Fifo cs replacement policy.

The entries that get removed first are unsolicited Data packets, which are the Data packets that got cached opportunistically without preceding forwarding of the corresponding Interest packet. Next, the Data packets with expired freshness are removed. Last, the Data packets are removed from the Content Store on a pure FIFO basis.

Definition at line 73 of file cs-policy-priority-fifo.hpp.

Constructor & Destructor Documentation

§ PriorityFifoPolicy()

nfd::cs::priority_fifo::PriorityFifoPolicy::PriorityFifoPolicy ( )

Definition at line 36 of file cs-policy-priority-fifo.cpp.

§ ~PriorityFifoPolicy()

Member Data Documentation

§ POLICY_NAME

const std::string nfd::cs::priority_fifo::PriorityFifoPolicy::POLICY_NAME = "fifo"
static

Definition at line 82 of file cs-policy-priority-fifo.hpp.


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