nfd::cs Namespace Reference

Namespaces

 lru
 
 priority_fifo
 

Classes

class  Cs
 Implements the Content Store. More...
 
class  Entry
 A ContentStore entry. More...
 
class  Policy
 Represents a CS replacement policy. More...
 

Typedefs

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

Functions

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

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 117 of file cs-entry.hpp.

Function Documentation

◆ compareDataWithData()

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

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

◆ compareQueryWithData()

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

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

◆ makeDefaultPolicy()

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

Definition at line 37 of file cs.cpp.

◆ operator<() [1/4]

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

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

◆ operator<() [2/4]

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

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

◆ operator<() [3/4]

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

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

◆ operator<() [4/4]

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

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