![]() |
Raven Core
3.0.0
P2P Digital Currency
|
Access to the block database (blocks/index/) More...
#include <assetdb.h>
Public Member Functions | |
CAssetsDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false) | |
CAssetsDB (const CAssetsDB &)=delete | |
CAssetsDB & | operator= (const CAssetsDB &)=delete |
bool | WriteAssetData (const CNewAsset &asset, const int nHeight, const uint256 &blockHash) |
bool | WriteAssetAddressQuantity (const std::string &assetName, const std::string &address, const CAmount &quantity) |
bool | WriteAddressAssetQuantity (const std::string &address, const std::string &assetName, const CAmount &quantity) |
bool | WriteBlockUndoAssetData (const uint256 &blockhash, const std::vector< std::pair< std::string, CBlockAssetUndo > > &assetUndoData) |
bool | WriteReissuedMempoolState () |
bool | ReadAssetData (const std::string &strName, CNewAsset &asset, int &nHeight, uint256 &blockHash) |
bool | ReadAssetAddressQuantity (const std::string &assetName, const std::string &address, CAmount &quantity) |
bool | ReadAddressAssetQuantity (const std::string &address, const std::string &assetName, CAmount &quantity) |
bool | ReadBlockUndoAssetData (const uint256 &blockhash, std::vector< std::pair< std::string, CBlockAssetUndo > > &assetUndoData) |
bool | ReadReissuedMempoolState () |
bool | EraseAssetData (const std::string &assetName) |
bool | EraseMyAssetData (const std::string &assetName) |
bool | EraseAssetAddressQuantity (const std::string &assetName, const std::string &address) |
bool | EraseAddressAssetQuantity (const std::string &address, const std::string &assetName) |
bool | LoadAssets () |
bool | AssetDir (std::vector< CDatabasedAssetData > &assets, const std::string filter, const size_t count, const long start) |
bool | AssetDir (std::vector< CDatabasedAssetData > &assets) |
bool | AddressDir (std::vector< std::pair< std::string, CAmount > > &vecAssetAmount, int &totalEntries, const bool &fGetTotal, const std::string &address, const size_t count, const long start) |
bool | AssetAddressDir (std::vector< std::pair< std::string, CAmount > > &vecAddressAmount, int &totalEntries, const bool &fGetTotal, const std::string &assetName, const size_t count, const long start) |
![]() | |
CDBWrapper (const fs::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false, bool obfuscate=false, size_t maxFileSize=2<< 20) | |
~CDBWrapper () | |
template<typename K , typename V > | |
bool | Read (const K &key, V &value) const |
template<typename K , typename V > | |
bool | Write (const K &key, const V &value, bool fSync=false) |
template<typename K > | |
bool | Exists (const K &key) const |
template<typename K > | |
bool | Erase (const K &key, bool fSync=false) |
bool | WriteBatch (CDBBatch &batch, bool fSync=false) |
bool | Flush () |
bool | Sync () |
CDBIterator * | NewIterator () |
bool | IsEmpty () |
Return true if the database managed by this class contains no entries. More... | |
template<typename K > | |
size_t | EstimateSize (const K &key_begin, const K &key_end) const |
template<typename K > | |
void | CompactRange (const K &key_begin, const K &key_end) const |
Compact a certain range of keys in the database. More... | |
|
explicit |
Definition at line 24 of file assetdb.cpp.
|
delete |
bool CAssetsDB::AddressDir | ( | std::vector< std::pair< std::string, CAmount > > & | vecAssetAmount, |
int & | totalEntries, | ||
const bool & | fGetTotal, | ||
const std::string & | address, | ||
const size_t | count, | ||
const long | start | ||
) |
Definition at line 247 of file assetdb.cpp.
bool CAssetsDB::AssetAddressDir | ( | std::vector< std::pair< std::string, CAmount > > & | vecAddressAmount, |
int & | totalEntries, | ||
const bool & | fGetTotal, | ||
const std::string & | assetName, | ||
const size_t | count, | ||
const long | start | ||
) |
Definition at line 320 of file assetdb.cpp.
bool CAssetsDB::AssetDir | ( | std::vector< CDatabasedAssetData > & | assets, |
const std::string | filter, | ||
const size_t | count, | ||
const long | start | ||
) |
bool CAssetsDB::AssetDir | ( | std::vector< CDatabasedAssetData > & | assets | ) |
bool CAssetsDB::EraseAddressAssetQuantity | ( | const std::string & | address, |
const std::string & | assetName | ||
) |
Definition at line 80 of file assetdb.cpp.
bool CAssetsDB::EraseAssetAddressQuantity | ( | const std::string & | assetName, |
const std::string & | address | ||
) |
Definition at line 76 of file assetdb.cpp.
bool CAssetsDB::EraseAssetData | ( | const std::string & | assetName | ) |
Definition at line 66 of file assetdb.cpp.
bool CAssetsDB::EraseMyAssetData | ( | const std::string & | assetName | ) |
bool CAssetsDB::LoadAssets | ( | ) |
bool CAssetsDB::ReadAddressAssetQuantity | ( | const std::string & | address, |
const std::string & | assetName, | ||
CAmount & | quantity | ||
) |
bool CAssetsDB::ReadAssetAddressQuantity | ( | const std::string & | assetName, |
const std::string & | address, | ||
CAmount & | quantity | ||
) |
Definition at line 57 of file assetdb.cpp.
bool CAssetsDB::ReadAssetData | ( | const std::string & | strName, |
CNewAsset & | asset, | ||
int & | nHeight, | ||
uint256 & | blockHash | ||
) |
Definition at line 42 of file assetdb.cpp.
bool CAssetsDB::ReadBlockUndoAssetData | ( | const uint256 & | blockhash, |
std::vector< std::pair< std::string, CBlockAssetUndo > > & | assetUndoData | ||
) |
bool CAssetsDB::ReadReissuedMempoolState | ( | ) |
bool CAssetsDB::WriteAddressAssetQuantity | ( | const std::string & | address, |
const std::string & | assetName, | ||
const CAmount & | quantity | ||
) |
Definition at line 38 of file assetdb.cpp.
bool CAssetsDB::WriteAssetAddressQuantity | ( | const std::string & | assetName, |
const std::string & | address, | ||
const CAmount & | quantity | ||
) |
Definition at line 33 of file assetdb.cpp.
bool CAssetsDB::WriteAssetData | ( | const CNewAsset & | asset, |
const int | nHeight, | ||
const uint256 & | blockHash | ||
) |
Definition at line 27 of file assetdb.cpp.
bool CAssetsDB::WriteBlockUndoAssetData | ( | const uint256 & | blockhash, |
const std::vector< std::pair< std::string, CBlockAssetUndo > > & | assetUndoData | ||
) |
bool CAssetsDB::WriteReissuedMempoolState | ( | ) |