Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
leveldb::Cache Class Referenceabstract

#include <cache.h>

Classes

struct  Handle
 

Public Member Functions

 Cache ()
 
virtual ~Cache ()
 
virtual HandleInsert (const Slice &key, void *value, size_t charge, void(*deleter)(const Slice &key, void *value))=0
 
virtual HandleLookup (const Slice &key)=0
 
virtual void Release (Handle *handle)=0
 
virtual void * Value (Handle *handle)=0
 
virtual void Erase (const Slice &key)=0
 
virtual uint64_t NewId ()=0
 

Private Member Functions

void LRU_Remove (Handle *e)
 
void LRU_Append (Handle *e)
 
void Unref (Handle *e)
 
 Cache (const Cache &)
 
void operator= (const Cache &)
 

Private Attributes

Rep * rep_
 

Detailed Description

Definition at line 32 of file cache.h.

Constructor & Destructor Documentation

leveldb::Cache::Cache ( )
inline

Definition at line 34 of file cache.h.

leveldb::Cache::~Cache ( )
virtual

Definition at line 16 of file cache.cc.

leveldb::Cache::Cache ( const Cache )
private

Member Function Documentation

virtual void leveldb::Cache::Erase ( const Slice key)
pure virtual
virtual Handle* leveldb::Cache::Insert ( const Slice key,
void *  value,
size_t  charge,
void(*)(const Slice &key, void *value deleter 
)
pure virtual
virtual Handle* leveldb::Cache::Lookup ( const Slice key)
pure virtual
void leveldb::Cache::LRU_Append ( Handle e)
private
void leveldb::Cache::LRU_Remove ( Handle e)
private
virtual uint64_t leveldb::Cache::NewId ( )
pure virtual
void leveldb::Cache::operator= ( const Cache )
private
virtual void leveldb::Cache::Release ( Handle handle)
pure virtual
void leveldb::Cache::Unref ( Handle e)
private
virtual void* leveldb::Cache::Value ( Handle handle)
pure virtual

Member Data Documentation

Rep* leveldb::Cache::rep_
private

Definition at line 89 of file cache.h.


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