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




class  Cs
 implements the Content Store More...
class  Entry
 a ContentStore entry More...
class  Policy
 represents a CS replacement policy More...


using Table = std::set< Entry, std::less<> >
 an ordered container of ContentStore entries More...


static int compareQueryWithData (const Name &queryName, const Data &data)
static int compareDataWithData (const Data &lhs, const Data &rhs)
bool operator< (const Entry &entry, const Name &queryName)
bool operator< (const Name &queryName, const Entry &entry)
bool operator< (const Entry &lhs, const Entry &rhs)
bool operator< (Table::const_iterator lhs, Table::const_iterator rhs)
static unique_ptr< PolicymakeDefaultPolicy ()



Typedef Documentation

◆ Table

using nfd::cs::Table = typedef std::set<Entry, std::less<> >

an ordered container of ContentStore entries

This container uses std::less<> comparator to enable lookup with queryName.

Definition at line 116 of file cs-entry.hpp.

Function Documentation

◆ compareQueryWithData()

static int nfd::cs::compareQueryWithData ( const Name queryName,
const Data data 

◆ compareDataWithData()

static int nfd::cs::compareDataWithData ( const Data lhs,
const Data rhs 

Definition at line 86 of file cs-entry.cpp.

References ndn::Name::compare(), ndn::Data::getFullName(), and ndn::Data::getName().

Referenced by operator<().

◆ operator<() [1/4]

bool nfd::cs::operator< ( const Entry entry,
const Name queryName 

Definition at line 97 of file cs-entry.cpp.

References compareQueryWithData(), and nfd::cs::Entry::getData().

Referenced by nfd::cs::Entry::clearUnsolicited().

◆ operator<() [2/4]

bool nfd::cs::operator< ( const Name queryName,
const Entry entry 

Definition at line 103 of file cs-entry.cpp.

References compareQueryWithData(), and nfd::cs::Entry::getData().

◆ operator<() [3/4]

bool nfd::cs::operator< ( const Entry lhs,
const Entry rhs 

Definition at line 109 of file cs-entry.cpp.

References compareDataWithData(), and nfd::cs::Entry::getData().

◆ operator<() [4/4]

bool nfd::cs::operator< ( Table::const_iterator  lhs,
Table::const_iterator  rhs 

Definition at line 119 of file cs-entry.hpp.

◆ makeDefaultPolicy()

static unique_ptr<Policy> nfd::cs::makeDefaultPolicy ( )

Definition at line 39 of file cs.cpp.

References nfd::cs::Policy::create().

Referenced by nfd::cs::Cs::Cs().

Variable Documentation

◆ ContentStore


Definition at line 36 of file cs.cpp.