plebble
us::gov::cash::app::db_t Struct Referencefinal

#include <app.h>

Collaboration diagram for us::gov::cash::app::db_t:

Public Types

typedef local_delta::accounts_t accounts_t
 

Public Member Functions

 db_t ()
 
 db_t (const db_t &)=delete
 
db_toperator= (const db_t &)=delete
 
 db_t (db_t &&other)
 
 ~db_t ()
 
bool add_ (const hash_t &, const cash_t &amount)
 
bool withdraw_ (const hash_t &k, const cash_t &amount)
 
void dump (int detail, ostream &os) const
 
cash_t budget () const
 
void tax_accounts (const cash_t &amount)
 
cash_t cash_in_circulation () const
 
void clear ()
 
void to_stream (ostream &) const
 
void from_stream (istream &)
 
void from_stream_prev (istream &)
 
void print_data (const hash_t &addr, ostream &os) const
 
void print_kv_b64 (const hash_t &addr, ostream &os) const
 
void list_files (const hash_t &addr, const string &path, ostream &os) const
 
hash_t file_hash (const hash_t &addr, const string &path) const
 

Public Attributes

mutex mx
 
accounts_taccounts {0}
 
cash_t max_subsidy
 

Member Typedef Documentation

◆ accounts_t

Constructor & Destructor Documentation

◆ db_t() [1/3]

us::gov::cash::app::db_t::db_t ( )

◆ db_t() [2/3]

us::gov::cash::app::db_t::db_t ( const db_t )
delete

◆ db_t() [3/3]

us::gov::cash::app::db_t::db_t ( db_t &&  other)

◆ ~db_t()

us::gov::cash::app::db_t::~db_t ( )

Member Function Documentation

◆ add_()

bool us::gov::cash::app::db_t::add_ ( const hash_t ,
const cash_t amount 
)

◆ budget()

cash_t us::gov::cash::app::db_t::budget ( ) const

◆ cash_in_circulation()

cash_t us::gov::cash::app::db_t::cash_in_circulation ( ) const

◆ clear()

void us::gov::cash::app::db_t::clear ( )

◆ dump()

void us::gov::cash::app::db_t::dump ( int  detail,
ostream &  os 
) const

◆ file_hash()

hash_t us::gov::cash::app::db_t::file_hash ( const hash_t addr,
const string &  path 
) const

◆ from_stream()

void us::gov::cash::app::db_t::from_stream ( istream &  )

◆ from_stream_prev()

void us::gov::cash::app::db_t::from_stream_prev ( istream &  )

◆ list_files()

void us::gov::cash::app::db_t::list_files ( const hash_t addr,
const string &  path,
ostream &  os 
) const

◆ operator=()

db_t& us::gov::cash::app::db_t::operator= ( const db_t )
delete

◆ print_data()

void us::gov::cash::app::db_t::print_data ( const hash_t addr,
ostream &  os 
) const

◆ print_kv_b64()

void us::gov::cash::app::db_t::print_kv_b64 ( const hash_t addr,
ostream &  os 
) const

◆ tax_accounts()

void us::gov::cash::app::db_t::tax_accounts ( const cash_t amount)

◆ to_stream()

void us::gov::cash::app::db_t::to_stream ( ostream &  ) const

◆ withdraw_()

bool us::gov::cash::app::db_t::withdraw_ ( const hash_t k,
const cash_t amount 
)

Member Data Documentation

◆ accounts

accounts_t* us::gov::cash::app::db_t::accounts {0}

◆ max_subsidy

cash_t us::gov::cash::app::db_t::max_subsidy

◆ mx

mutex us::gov::cash::app::db_t::mx
mutable

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