![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <account.h>
Public Member Functions | |
| bool | isSameOrPastVersion (const Account &otherAccount) const |
| Json::Value | toJson () const |
| CurrencyPool | getRecycledAvail () const |
| CurrencyPool | getBudget () const |
| CurrencyPool | getNetBudget () const |
| void | checkInvariants (const char *whereFrom="") const |
| CurrencyPool | recuperate () |
| void | recycle (const CurrencyPool &recuperated) |
| void | setBudget (const CurrencyPool &newBudget) |
| CurrencyPool | setBalance (Account &parentAccount, const CurrencyPool &newBalance) |
| CurrencyPool | importSpend (const CurrencyPool &spend) |
| void | recuperateTo (Account &parentAccount) |
Static Public Member Functions | |
| static const Account | fromJson (const Json::Value &json) |
Public Attributes | |
| AccountType | type |
| CurrencyPool | budgetIncreases |
| Transferred in from parent. | |
| CurrencyPool | budgetDecreases |
| Transferred out (in parent only) | |
| CurrencyPool | recycledIn |
| Unspent transferred back in. | |
| CurrencyPool | allocatedIn |
| CurrencyPool | commitmentsRetired |
| Money not spent. | |
| CurrencyPool | adjustmentsIn |
| Money transferred in by adjustments. | |
| CurrencyPool | recycledOut |
| CurrencyPool | allocatedOut |
| CurrencyPool | commitmentsMade |
| CurrencyPool | adjustmentsOut |
| Money transferred out by adjustments. | |
| CurrencyPool | spent |
| Actually spent. | |
| CurrencyPool | balance |
| Balance to be spent. | |
| LineItems | lineItems |
| Spent line items. | |
| LineItems | adjustmentLineItems |
| Adjustment line items. | |
| CurrencyPool RTBKIT::Account::getNetBudget | ( | ) | const |
Returns the budget what was not transferred from or to other accounts.
Definition at line 112 of file account.cc.
| CurrencyPool RTBKIT::Account::getRecycledAvail | ( | ) | const [inline] |
| CurrencyPool RTBKIT::Account::importSpend | ( | const CurrencyPool & | spend | ) |
(migration helper) Register an expense on a AT_SPEND account.
Definition at line 79 of file account.cc.
| CurrencyPool RTBKIT::Account::recuperate | ( | ) | [inline] |
| void RTBKIT::Account::recycle | ( | const CurrencyPool & | recuperated | ) | [inline] |
| CurrencyPool RTBKIT::Account::setBalance | ( | Account & | parentAccount, |
| const CurrencyPool & | newBalance | ||
| ) | [inline] |
| void RTBKIT::Account::setBudget | ( | const CurrencyPool & | newBudget | ) |
Set the budget to the given amount. It will adjust the balance amount to match the new level.
Definition at line 52 of file account.cc.
1.7.6.1