Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | List of all members
CRestrictedDB Class Reference

#include <restricteddb.h>

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

Public Member Functions

 CRestrictedDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
 CRestrictedDB (const CRestrictedDB &)=delete
 
CRestrictedDBoperator= (const CRestrictedDB &)=delete
 
bool WriteVerifier (const std::string &assetName, const std::string &verifier)
 
bool ReadVerifier (const std::string &assetName, std::string &verifier)
 
bool EraseVerifier (const std::string &assetName)
 
bool WriteAddressQualifier (const std::string &address, const std::string &tag)
 
bool ReadAddressQualifier (const std::string &address, const std::string &tag)
 
bool EraseAddressQualifier (const std::string &address, const std::string &tag)
 
bool WriteQualifierAddress (const std::string &address, const std::string &tag)
 
bool ReadQualifierAddress (const std::string &address, const std::string &tag)
 
bool EraseQualifierAddress (const std::string &address, const std::string &tag)
 
bool WriteRestrictedAddress (const std::string &address, const std::string &assetName)
 
bool ReadRestrictedAddress (const std::string &address, const std::string &assetName)
 
bool EraseRestrictedAddress (const std::string &address, const std::string &assetName)
 
bool WriteGlobalRestriction (const std::string &assetName)
 
bool ReadGlobalRestriction (const std::string &assetName)
 
bool EraseGlobalRestriction (const std::string &assetName)
 
bool WriteFlag (const std::string &name, bool fValue)
 
bool ReadFlag (const std::string &name, bool &fValue)
 
bool GetQualifierAddresses (std::string &qualifier, std::vector< std::string > &addresses)
 
bool GetAddressQualifiers (std::string &address, std::vector< std::string > &qualifiers)
 
bool GetAddressRestrictions (std::string &address, std::vector< std::string > &restrictions)
 
bool GetGlobalRestrictions (std::vector< std::string > &restrictions)
 
bool CheckForAddressRootQualifier (const std::string &address, const std::string &qualifier)
 
bool Flush ()
 
- Public Member Functions inherited from CDBWrapper
 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 ()
 
CDBIteratorNewIterator ()
 
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...
 

Detailed Description

Definition at line 11 of file restricteddb.h.

Constructor & Destructor Documentation

◆ CRestrictedDB() [1/2]

CRestrictedDB::CRestrictedDB ( size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)
explicit

Definition at line 19 of file restricteddb.cpp.

◆ CRestrictedDB() [2/2]

CRestrictedDB::CRestrictedDB ( const CRestrictedDB )
delete

Member Function Documentation

◆ CheckForAddressRootQualifier()

bool CRestrictedDB::CheckForAddressRootQualifier ( const std::string &  address,
const std::string &  qualifier 
)

Definition at line 148 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EraseAddressQualifier()

bool CRestrictedDB::EraseAddressQualifier ( const std::string &  address,
const std::string &  tag 
)

Definition at line 51 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EraseGlobalRestriction()

bool CRestrictedDB::EraseGlobalRestriction ( const std::string &  assetName)

Definition at line 106 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EraseQualifierAddress()

bool CRestrictedDB::EraseQualifierAddress ( const std::string &  address,
const std::string &  tag 
)

Definition at line 69 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EraseRestrictedAddress()

bool CRestrictedDB::EraseRestrictedAddress ( const std::string &  address,
const std::string &  assetName 
)

Definition at line 88 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EraseVerifier()

bool CRestrictedDB::EraseVerifier ( const std::string &  assetName)

Definition at line 33 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flush()

bool CRestrictedDB::Flush ( )

◆ GetAddressQualifiers()

bool CRestrictedDB::GetAddressQualifiers ( std::string &  address,
std::vector< std::string > &  qualifiers 
)

Definition at line 171 of file restricteddb.cpp.

Here is the caller graph for this function:

◆ GetAddressRestrictions()

bool CRestrictedDB::GetAddressRestrictions ( std::string &  address,
std::vector< std::string > &  restrictions 
)

Definition at line 194 of file restricteddb.cpp.

Here is the caller graph for this function:

◆ GetGlobalRestrictions()

bool CRestrictedDB::GetGlobalRestrictions ( std::vector< std::string > &  restrictions)

Definition at line 217 of file restricteddb.cpp.

Here is the caller graph for this function:

◆ GetQualifierAddresses()

bool CRestrictedDB::GetQualifierAddresses ( std::string &  qualifier,
std::vector< std::string > &  addresses 
)

Definition at line 125 of file restricteddb.cpp.

Here is the caller graph for this function:

◆ operator=()

CRestrictedDB& CRestrictedDB::operator= ( const CRestrictedDB )
delete

◆ ReadAddressQualifier()

bool CRestrictedDB::ReadAddressQualifier ( const std::string &  address,
const std::string &  tag 
)

Definition at line 45 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFlag()

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

Definition at line 116 of file restricteddb.cpp.

Here is the call graph for this function:

◆ ReadGlobalRestriction()

bool CRestrictedDB::ReadGlobalRestriction ( const std::string &  assetName)

Definition at line 100 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadQualifierAddress()

bool CRestrictedDB::ReadQualifierAddress ( const std::string &  address,
const std::string &  tag 
)

Definition at line 63 of file restricteddb.cpp.

Here is the call graph for this function:

◆ ReadRestrictedAddress()

bool CRestrictedDB::ReadRestrictedAddress ( const std::string &  address,
const std::string &  assetName 
)

Definition at line 82 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadVerifier()

bool CRestrictedDB::ReadVerifier ( const std::string &  assetName,
std::string &  verifier 
)

Definition at line 28 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteAddressQualifier()

bool CRestrictedDB::WriteAddressQualifier ( const std::string &  address,
const std::string &  tag 
)

Definition at line 39 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteFlag()

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

Definition at line 111 of file restricteddb.cpp.

Here is the call graph for this function:

◆ WriteGlobalRestriction()

bool CRestrictedDB::WriteGlobalRestriction ( const std::string &  assetName)

Definition at line 94 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteQualifierAddress()

bool CRestrictedDB::WriteQualifierAddress ( const std::string &  address,
const std::string &  tag 
)

Definition at line 57 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteRestrictedAddress()

bool CRestrictedDB::WriteRestrictedAddress ( const std::string &  address,
const std::string &  assetName 
)

Definition at line 76 of file restricteddb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteVerifier()

bool CRestrictedDB::WriteVerifier ( const std::string &  assetName,
const std::string &  verifier 
)

Definition at line 23 of file restricteddb.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: