Electroneum
Public Member Functions | Private Attributes | List of all members
cryptonote::db_txn_guard Class Reference

#include <blockchain_db.h>

Inheritance diagram for cryptonote::db_txn_guard:
Inheritance graph
[legend]
Collaboration diagram for cryptonote::db_txn_guard:
Collaboration graph
[legend]

Public Member Functions

 db_txn_guard (BlockchainDB *db, bool readonly)
 
virtual ~db_txn_guard ()
 
void stop ()
 
void abort ()
 

Private Attributes

BlockchainDBdb
 
bool readonly
 
bool active
 

Constructor & Destructor Documentation

◆ db_txn_guard()

cryptonote::db_txn_guard::db_txn_guard ( BlockchainDB db,
bool  readonly 
)
inline

◆ ~db_txn_guard()

virtual cryptonote::db_txn_guard::~db_txn_guard ( )
inlinevirtual

Member Function Documentation

◆ abort()

void cryptonote::db_txn_guard::abort ( )
inline

◆ stop()

void cryptonote::db_txn_guard::stop ( )
inline

Member Data Documentation

◆ active

bool cryptonote::db_txn_guard::active
private

◆ db

BlockchainDB* cryptonote::db_txn_guard::db
private

◆ readonly

bool cryptonote::db_txn_guard::readonly
private

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