Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
StorageResults Class Reference

#include <storageresults.h>

Public Member Functions

 StorageResults (std::string const &_path)
 
 ~StorageResults ()
 
void addResult (dev::h256 hashTx, std::vector< TransactionReceiptInfo > &result)
 
void deleteResults (std::vector< CTransactionRef > const &txs)
 
std::vector< TransactionReceiptInfogetResult (dev::h256 const &hashTx)
 
void commitResults ()
 
void clearCacheResult ()
 
void wipeResults ()
 

Private Member Functions

bool readResult (dev::h256 const &_key, std::vector< TransactionReceiptInfo > &_result)
 
logEntriesSerializ logEntriesSerialization (dev::eth::LogEntries const &_logs)
 
dev::eth::LogEntries logEntriesDeserialize (logEntriesSerializ const &_logs)
 

Private Attributes

std::string path
 
leveldb::DB * db
 
leveldb::Options options
 
std::unordered_map< dev::h256, std::vector< TransactionReceiptInfo > > m_cache_result
 

Detailed Description

Definition at line 37 of file storageresults.h.

Constructor & Destructor Documentation

StorageResults::StorageResults ( std::string const &  _path)

Definition at line 3 of file storageresults.cpp.

Here is the call graph for this function:

StorageResults::~StorageResults ( )

Definition at line 12 of file storageresults.cpp.

Member Function Documentation

void StorageResults::addResult ( dev::h256  hashTx,
std::vector< TransactionReceiptInfo > &  result 
)

Definition at line 18 of file storageresults.cpp.

Here is the caller graph for this function:

void StorageResults::clearCacheResult ( )

Definition at line 23 of file storageresults.cpp.

Here is the caller graph for this function:

void StorageResults::commitResults ( )

Definition at line 60 of file storageresults.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void StorageResults::deleteResults ( std::vector< CTransactionRef > const &  txs)

Definition at line 34 of file storageresults.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< TransactionReceiptInfo > StorageResults::getResult ( dev::h256 const &  hashTx)

Definition at line 47 of file storageresults.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

dev::eth::LogEntries StorageResults::logEntriesDeserialize ( logEntriesSerializ const &  _logs)
private

Definition at line 146 of file storageresults.cpp.

Here is the caller graph for this function:

logEntriesSerializ StorageResults::logEntriesSerialization ( dev::eth::LogEntries const &  _logs)
private

Definition at line 137 of file storageresults.cpp.

Here is the caller graph for this function:

bool StorageResults::readResult ( dev::h256 const &  _key,
std::vector< TransactionReceiptInfo > &  _result 
)
private

Definition at line 101 of file storageresults.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void StorageResults::wipeResults ( )

Definition at line 28 of file storageresults.cpp.

Here is the caller graph for this function:

Member Data Documentation

leveldb::DB* StorageResults::db
private

Definition at line 64 of file storageresults.h.

std::unordered_map<dev::h256, std::vector<TransactionReceiptInfo> > StorageResults::m_cache_result
private

Definition at line 68 of file storageresults.h.

leveldb::Options StorageResults::options
private

Definition at line 66 of file storageresults.h.

std::string StorageResults::path
private

Definition at line 62 of file storageresults.h.


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