Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
leveldb::CacheTest Class Reference
Collaboration diagram for leveldb::CacheTest:
Collaboration graph
[legend]

Public Member Functions

 CacheTest ()
 
 ~CacheTest ()
 
int Lookup (int key)
 
void Insert (int key, int value, int charge=1)
 
void Erase (int key)
 

Static Public Member Functions

static void Deleter (const Slice &key, void *v)
 

Public Attributes

std::vector< int > deleted_keys_
 
std::vector< int > deleted_values_
 
Cachecache_
 

Static Public Attributes

static CacheTestcurrent_
 
static const int kCacheSize = 1000
 

Detailed Description

Definition at line 26 of file cache_test.cc.

Constructor & Destructor Documentation

leveldb::CacheTest::CacheTest ( )
inline

Definition at line 40 of file cache_test.cc.

leveldb::CacheTest::~CacheTest ( )
inline

Definition at line 44 of file cache_test.cc.

Member Function Documentation

static void leveldb::CacheTest::Deleter ( const Slice key,
void *  v 
)
inlinestatic

Definition at line 30 of file cache_test.cc.

void leveldb::CacheTest::Erase ( int  key)
inline

Definition at line 62 of file cache_test.cc.

void leveldb::CacheTest::Insert ( int  key,
int  value,
int  charge = 1 
)
inline

Definition at line 57 of file cache_test.cc.

int leveldb::CacheTest::Lookup ( int  key)
inline

Definition at line 48 of file cache_test.cc.

Member Data Documentation

Cache* leveldb::CacheTest::cache_

Definition at line 38 of file cache_test.cc.

CacheTest * leveldb::CacheTest::current_
static

Definition at line 28 of file cache_test.cc.

std::vector<int> leveldb::CacheTest::deleted_keys_

Definition at line 36 of file cache_test.cc.

std::vector<int> leveldb::CacheTest::deleted_values_

Definition at line 37 of file cache_test.cc.

const int leveldb::CacheTest::kCacheSize = 1000
static

Definition at line 35 of file cache_test.cc.


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