|
CatapultServer
v0.5.0.1 (Elephant)
|
Container holding information about account. More...

Public Member Functions | |
| AccountBalances () | |
| Creates an empty account balances. More... | |
| AccountBalances (const AccountBalances &accountBalances) | |
| Copy constructor that makes a deep copy of accountBalances. More... | |
| AccountBalances (AccountBalances &&accountBalances) | |
| Move constructor that move constructs an account balances from accountBalances. More... | |
| AccountBalances & | operator= (const AccountBalances &accountBalances) |
| Assignment operator that makes a deep copy of accountBalances. More... | |
| AccountBalances & | operator= (AccountBalances &&accountBalances) |
| Move assignment operator that assigns accountBalances. More... | |
| size_t | size () const |
| Returns the number of mosaics owned. More... | |
| auto | begin () const |
| Returns a const iterator to the first element of the underlying set. More... | |
| auto | end () const |
| Returns a const iterator to the element following the last element of the underlying set. More... | |
| MosaicId | optimizedMosaicId () const |
| Gets the optimized mosaic id. More... | |
| Amount | get (MosaicId mosaicId) const |
| Returns amount of funds of a given mosaic (mosaicId). More... | |
| AccountBalances & | credit (MosaicId mosaicId, Amount amount) |
| Adds amount funds to a given mosaic (mosaicId). More... | |
| AccountBalances & | debit (MosaicId mosaicId, Amount amount) |
| Subtracts amount funds from a given mosaic (mosaicId). More... | |
| void | optimize (MosaicId id) |
| Optimizes access of the mosaic with id. More... | |
Private Attributes | |
| CompactMosaicMap | m_balances |
| MosaicId | m_optimizedMosaicId |
Container holding information about account.
|
default |
Creates an empty account balances.
| catapult::state::AccountBalances::AccountBalances | ( | const AccountBalances & | accountBalances | ) |
Copy constructor that makes a deep copy of accountBalances.
|
default |
Move constructor that move constructs an account balances from accountBalances.
|
inline |
Returns a const iterator to the first element of the underlying set.

| AccountBalances & catapult::state::AccountBalances::credit | ( | MosaicId | mosaicId, |
| Amount | amount | ||
| ) |
Adds amount funds to a given mosaic (mosaicId).

| AccountBalances & catapult::state::AccountBalances::debit | ( | MosaicId | mosaicId, |
| Amount | amount | ||
| ) |
Subtracts amount funds from a given mosaic (mosaicId).

|
inline |
Returns a const iterator to the element following the last element of the underlying set.

Returns amount of funds of a given mosaic (mosaicId).


|
default |
Move assignment operator that assigns accountBalances.
| AccountBalances & catapult::state::AccountBalances::operator= | ( | const AccountBalances & | accountBalances | ) |
Assignment operator that makes a deep copy of accountBalances.

| void catapult::state::AccountBalances::optimize | ( | MosaicId | id | ) |
Optimizes access of the mosaic with id.

| MosaicId catapult::state::AccountBalances::optimizedMosaicId | ( | ) | const |
Gets the optimized mosaic id.

|
inline |
Returns the number of mosaics owned.


|
private |
|
private |