rippled
Public Member Functions | Public Attributes | List of all members
ripple::SHAMapStoreImp::SavedStateDB Class Reference
Collaboration diagram for ripple::SHAMapStoreImp::SavedStateDB:
Collaboration graph
[legend]

Public Member Functions

 SavedStateDB ()
 
void init (BasicConfig const &config, std::string const &dbName)
 
LedgerIndex getCanDelete ()
 
LedgerIndex setCanDelete (LedgerIndex canDelete)
 
SavedState getState ()
 
void setState (SavedState const &state)
 
void setLastRotated (LedgerIndex seq)
 

Public Attributes

soci::session sqlDb_
 
std::mutex mutex_
 
const beast::Journal journal_
 

Detailed Description

Definition at line 43 of file SHAMapStoreImp.h.

Constructor & Destructor Documentation

◆ SavedStateDB()

ripple::SHAMapStoreImp::SavedStateDB::SavedStateDB ( )
explicit

Definition at line 52 of file SHAMapStoreImp.h.

Member Function Documentation

◆ init()

void ripple::SHAMapStoreImp::SavedStateDB::init ( BasicConfig const &  config,
std::string const &  dbName 
)

Definition at line 37 of file SHAMapStoreImp.cpp.

◆ getCanDelete()

LedgerIndex ripple::SHAMapStoreImp::SavedStateDB::getCanDelete ( )

Definition at line 46 of file SHAMapStoreImp.cpp.

◆ setCanDelete()

LedgerIndex ripple::SHAMapStoreImp::SavedStateDB::setCanDelete ( LedgerIndex  canDelete)

Definition at line 54 of file SHAMapStoreImp.cpp.

◆ getState()

SavedState ripple::SHAMapStoreImp::SavedStateDB::getState ( )

Definition at line 62 of file SHAMapStoreImp.cpp.

◆ setState()

void ripple::SHAMapStoreImp::SavedStateDB::setState ( SavedState const &  state)

Definition at line 70 of file SHAMapStoreImp.cpp.

◆ setLastRotated()

void ripple::SHAMapStoreImp::SavedStateDB::setLastRotated ( LedgerIndex  seq)

Definition at line 77 of file SHAMapStoreImp.cpp.

Member Data Documentation

◆ sqlDb_

soci::session ripple::SHAMapStoreImp::SavedStateDB::sqlDb_

Definition at line 46 of file SHAMapStoreImp.h.

◆ mutex_

std::mutex ripple::SHAMapStoreImp::SavedStateDB::mutex_

Definition at line 47 of file SHAMapStoreImp.h.

◆ journal_

const beast::Journal ripple::SHAMapStoreImp::SavedStateDB::journal_

Definition at line 48 of file SHAMapStoreImp.h.