Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CLevelDBWrapper Class Reference

#include <leveldbwrapper.h>

Inheritance diagram for CLevelDBWrapper:
[legend]

Public Member Functions

 CLevelDBWrapper (const boost::filesystem::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
 ~CLevelDBWrapper ()
 
template<typename K , typename V >
bool Read (const K &key, V &value) throw (leveldb_error)
 
template<typename K , typename V >
bool Write (const K &key, const V &value, bool fSync=false) throw (leveldb_error)
 
template<typename K >
bool Exists (const K &key) throw (leveldb_error)
 
template<typename K >
bool Erase (const K &key, bool fSync=false) throw (leveldb_error)
 
bool WriteBatch (CLevelDBBatch &batch, bool fSync=false) throw (leveldb_error)
 
bool Flush ()
 
bool Sync () throw (leveldb_error)
 
leveldb::Iterator * NewIterator ()
 

Private Attributes

leveldb::Env * penv
 
leveldb::Options options
 
leveldb::ReadOptions readoptions
 
leveldb::ReadOptions iteroptions
 
leveldb::WriteOptions writeoptions
 
leveldb::WriteOptions syncoptions
 
leveldb::DB * pdb
 

Detailed Description

Definition at line 59 of file leveldbwrapper.h.

Constructor & Destructor Documentation

CLevelDBWrapper::CLevelDBWrapper ( const boost::filesystem::path &  path,
size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)

Definition at line 39 of file leveldbwrapper.cpp.

Here is the call graph for this function:

CLevelDBWrapper::~CLevelDBWrapper ( )

Definition at line 63 of file leveldbwrapper.cpp.

Member Function Documentation

template<typename K >
bool CLevelDBWrapper::Erase ( const K &  key,
bool  fSync = false 
)
throw (leveldb_error
)
inline

Definition at line 133 of file leveldbwrapper.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename K >
bool CLevelDBWrapper::Exists ( const K &  key)
throw (leveldb_error
)
inline

Definition at line 116 of file leveldbwrapper.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CLevelDBWrapper::Flush ( )
inline

Definition at line 142 of file leveldbwrapper.h.

Here is the caller graph for this function:

leveldb::Iterator* CLevelDBWrapper::NewIterator ( )
inline

Definition at line 152 of file leveldbwrapper.h.

Here is the caller graph for this function:

template<typename K , typename V >
bool CLevelDBWrapper::Read ( const K &  key,
V &  value 
)
throw (leveldb_error
)
inline

Definition at line 87 of file leveldbwrapper.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CLevelDBWrapper::Sync ( )
throw (leveldb_error
)
inline

Definition at line 146 of file leveldbwrapper.h.

Here is the call graph for this function:

template<typename K , typename V >
bool CLevelDBWrapper::Write ( const K &  key,
const V &  value,
bool  fSync = false 
)
throw (leveldb_error
)
inline

Definition at line 110 of file leveldbwrapper.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CLevelDBWrapper::WriteBatch ( CLevelDBBatch batch,
bool  fSync = false 
)
throw (leveldb_error
)

Definition at line 74 of file leveldbwrapper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

leveldb::ReadOptions CLevelDBWrapper::iteroptions
private

Definition at line 72 of file leveldbwrapper.h.

leveldb::Options CLevelDBWrapper::options
private

Definition at line 66 of file leveldbwrapper.h.

leveldb::DB* CLevelDBWrapper::pdb
private

Definition at line 81 of file leveldbwrapper.h.

leveldb::Env* CLevelDBWrapper::penv
private

Definition at line 63 of file leveldbwrapper.h.

leveldb::ReadOptions CLevelDBWrapper::readoptions
private

Definition at line 69 of file leveldbwrapper.h.

leveldb::WriteOptions CLevelDBWrapper::syncoptions
private

Definition at line 78 of file leveldbwrapper.h.

leveldb::WriteOptions CLevelDBWrapper::writeoptions
private

Definition at line 75 of file leveldbwrapper.h.


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