Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CMPTally Class Reference

#include <mastercore.h>

+ Collaboration diagram for CMPTally:

Classes

struct  BalanceRecord
 

Public Member Functions

unsigned int init ()
 
unsigned int next ()
 
bool updateMoney (unsigned int which_property, int64_t amount, TallyType ttype)
 
 CMPTally ()
 
int64_t print (int which_property=OMNI_PROPERTY_MSC, bool bDivisible=true)
 
int64_t getMoney (unsigned int which_property, TallyType ttype)
 

Private Types

typedef std::map< unsigned int, BalanceRecordTokenMap
 

Private Member Functions

bool propertyExists (unsigned int which_property) const
 

Private Attributes

TokenMap mp_token
 
TokenMap::iterator my_it
 

Detailed Description

Definition at line 191 of file mastercore.h.

Member Typedef Documentation

typedef std::map<unsigned int, BalanceRecord> CMPTally::TokenMap
private

Definition at line 199 of file mastercore.h.

Constructor & Destructor Documentation

CMPTally::CMPTally ( )
inline

Definition at line 261 of file mastercore.h.

Member Function Documentation

int64_t CMPTally::getMoney ( unsigned int  which_property,
TallyType  ttype 
)
inline

Definition at line 294 of file mastercore.h.

References cs_tally, LOCK, propertyExists(), and TALLY_TYPE_COUNT.

+ Here is the call graph for this function:

unsigned int CMPTally::init ( )
inline

Definition at line 212 of file mastercore.h.

Referenced by getallbalancesforaddress_MP(), and write_msc_balances().

+ Here is the caller graph for this function:

unsigned int CMPTally::next ( )
inline

Definition at line 222 of file mastercore.h.

References my_it.

Referenced by getallbalancesforaddress_MP(), and write_msc_balances().

+ Here is the caller graph for this function:

int64_t CMPTally::print ( int  which_property = OMNI_PROPERTY_MSC,
bool  bDivisible = true 
)
inline

Definition at line 266 of file mastercore.h.

References ACCEPT_RESERVE, BALANCE, FormatDivisibleMP(), PENDING, propertyExists(), and SELLOFFER_RESERVE.

+ Here is the call graph for this function:

bool CMPTally::propertyExists ( unsigned int  which_property) const
inlineprivate

Definition at line 203 of file mastercore.h.

Referenced by getMoney(), and print().

+ Here is the caller graph for this function:

bool CMPTally::updateMoney ( unsigned int  which_property,
int64_t  amount,
TallyType  ttype 
)
inline

Definition at line 235 of file mastercore.h.

References cs_tally, LOCK, PENDING, and TALLY_TYPE_COUNT.

Referenced by mastercore::update_tally_map().

+ Here is the caller graph for this function:

Member Data Documentation

TokenMap CMPTally::mp_token
private

Definition at line 200 of file mastercore.h.

TokenMap::iterator CMPTally::my_it
private

Definition at line 201 of file mastercore.h.

Referenced by next().


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