Distributed Cache
Public Member Functions | List of all members
CachePolicyInterface Class Referenceabstract

#include <cache_policy_interface.h>

Inheritance diagram for CachePolicyInterface:
Inheritance graph
Collaboration diagram for CachePolicyInterface:
Collaboration graph

Public Member Functions

virtual bool hasEntry (std::string container, int key)=0
 
virtual int getEntry (std::string container, int key)=0
 
virtual void insert (std::string container, int key, int value)=0
 
virtual void erase (std::string container, int key)=0
 
virtual void reset ()=0
 
virtual void allocateSize (int size)=0
 
virtual int getSize ()=0
 
virtual ~CachePolicyInterface ()
 

Constructor & Destructor Documentation

◆ ~CachePolicyInterface()

virtual CachePolicyInterface::~CachePolicyInterface ( )
inlinevirtual

Member Function Documentation

◆ allocateSize()

virtual void CachePolicyInterface::allocateSize ( int  size)
pure virtual

Implemented in LRUCachePolicy.

◆ erase()

virtual void CachePolicyInterface::erase ( std::string  container,
int  key 
)
pure virtual

Implemented in LRUCachePolicy.

Here is the caller graph for this function:

◆ getEntry()

virtual int CachePolicyInterface::getEntry ( std::string  container,
int  key 
)
pure virtual

Implemented in LRUCachePolicy.

Here is the caller graph for this function:

◆ getSize()

virtual int CachePolicyInterface::getSize ( )
pure virtual

Implemented in LRUCachePolicy.

◆ hasEntry()

virtual bool CachePolicyInterface::hasEntry ( std::string  container,
int  key 
)
pure virtual

Implemented in LRUCachePolicy.

Here is the caller graph for this function:

◆ insert()

virtual void CachePolicyInterface::insert ( std::string  container,
int  key,
int  value 
)
pure virtual

Implemented in LRUCachePolicy.

Here is the caller graph for this function:

◆ reset()

virtual void CachePolicyInterface::reset ( )
pure virtual

Implemented in LRUCachePolicy.

Here is the caller graph for this function:

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