leveldb
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
leveldb::Cache Class Referenceabstract

#include <cache.h>

Inheritance diagram for leveldb::Cache:
Inheritance graph
[legend]

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
 
virtual void Prune ()
 
virtual size_t TotalCharge () const =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.


Class Documentation

§ leveldb::Cache::Handle

struct leveldb::Cache::Handle

Definition at line 41 of file cache.h.

Constructor & Destructor Documentation

§ Cache() [1/2]

leveldb::Cache::Cache ( )
inline

Definition at line 34 of file cache.h.

34 { }
Here is the call graph for this function:

§ ~Cache()

leveldb::Cache::~Cache ( )
virtual

Definition at line 16 of file cache.cc.

16  {
17 }
Here is the caller graph for this function:

§ Cache() [2/2]

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

Member Function Documentation

§ Erase()

virtual void leveldb::Cache::Erase ( const Slice key)
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ Insert()

virtual Handle* leveldb::Cache::Insert ( const Slice key,
void *  value,
size_t  charge,
void(*)(const Slice &key, void *value)  deleter 
)
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ Lookup()

virtual Handle* leveldb::Cache::Lookup ( const Slice key)
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ LRU_Append()

void leveldb::Cache::LRU_Append ( Handle e)
private
Here is the caller graph for this function:

§ LRU_Remove()

void leveldb::Cache::LRU_Remove ( Handle e)
private
Here is the caller graph for this function:

§ NewId()

virtual uint64_t leveldb::Cache::NewId ( )
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ operator=()

void leveldb::Cache::operator= ( const Cache )
private

§ Prune()

virtual void leveldb::Cache::Prune ( )
inlinevirtual

Reimplemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Definition at line 89 of file cache.h.

89 {}
Here is the call graph for this function:
Here is the caller graph for this function:

§ Release()

virtual void leveldb::Cache::Release ( Handle handle)
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ TotalCharge()

virtual size_t leveldb::Cache::TotalCharge ( ) const
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

§ Unref()

void leveldb::Cache::Unref ( Handle e)
private
Here is the caller graph for this function:

§ Value()

virtual void* leveldb::Cache::Value ( Handle handle)
pure virtual

Implemented in leveldb::anonymous_namespace{cache.cc}::ShardedLRUCache.

Here is the caller graph for this function:

Member Data Documentation

§ rep_

Rep* leveldb::Cache::rep_
private

Definition at line 100 of file cache.h.


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