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

Access to the block database (blocks/index/) More...

#include <txdb.h>

Inheritance diagram for CBlockTreeDB:
[legend]
Collaboration diagram for CBlockTreeDB:
[legend]

Public Member Functions

 CBlockTreeDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
bool WriteBlockIndex (const CDiskBlockIndex &blockindex)
 
bool WriteBestInvalidWork (const CBigNum &bnBestInvalidWork)
 
bool ReadBlockFileInfo (int nFile, CBlockFileInfo &fileinfo)
 
bool WriteBlockFileInfo (int nFile, const CBlockFileInfo &fileinfo)
 
bool ReadLastBlockFile (int &nFile)
 
bool WriteLastBlockFile (int nFile)
 
bool WriteReindexing (bool fReindex)
 
bool ReadReindexing (bool &fReindex)
 
bool ReadTxIndex (const uint256 &txid, CDiskTxPos &pos)
 
bool WriteTxIndex (const std::vector< std::pair< uint256, CDiskTxPos > > &list)
 
bool WriteFlag (const std::string &name, bool fValue)
 
bool ReadFlag (const std::string &name, bool &fValue)
 
bool LoadBlockIndexGuts ()
 
- Public Member Functions inherited from CLevelDBWrapper
 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 Member Functions

 CBlockTreeDB (const CBlockTreeDB &)
 
void operator= (const CBlockTreeDB &)
 

Detailed Description

Access to the block database (blocks/index/)

Definition at line 47 of file txdb.h.

Constructor & Destructor Documentation

CBlockTreeDB::CBlockTreeDB ( size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)

Definition at line 69 of file txdb.cpp.

CBlockTreeDB::CBlockTreeDB ( const CBlockTreeDB )
private

Member Function Documentation

bool CBlockTreeDB::LoadBlockIndexGuts ( )

Definition at line 185 of file txdb.cpp.

Here is the call graph for this function:

void CBlockTreeDB::operator= ( const CBlockTreeDB )
private
bool CBlockTreeDB::ReadBlockFileInfo ( int  nFile,
CBlockFileInfo fileinfo 
)

Definition at line 87 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::ReadFlag ( const std::string &  name,
bool &  fValue 
)

Definition at line 177 of file txdb.cpp.

Here is the call graph for this function:

bool CBlockTreeDB::ReadLastBlockFile ( int &  nFile)

Definition at line 107 of file txdb.cpp.

Here is the call graph for this function:

bool CBlockTreeDB::ReadReindexing ( bool &  fReindex)

Definition at line 102 of file txdb.cpp.

Here is the call graph for this function:

bool CBlockTreeDB::ReadTxIndex ( const uint256 txid,
CDiskTxPos pos 
)

Definition at line 162 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteBestInvalidWork ( const CBigNum bnBestInvalidWork)

Definition at line 77 of file txdb.cpp.

Here is the call graph for this function:

bool CBlockTreeDB::WriteBlockFileInfo ( int  nFile,
const CBlockFileInfo fileinfo 
)

Definition at line 83 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteBlockIndex ( const CDiskBlockIndex blockindex)

Definition at line 72 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteFlag ( const std::string &  name,
bool  fValue 
)

Definition at line 173 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteLastBlockFile ( int  nFile)

Definition at line 91 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteReindexing ( bool  fReindex)

Definition at line 95 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBlockTreeDB::WriteTxIndex ( const std::vector< std::pair< uint256, CDiskTxPos > > &  list)

Definition at line 166 of file txdb.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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