RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Classes | |
struct | AccountInfo |
Public Member Functions | |
const Account | createAccount (const AccountKey &account, AccountType type) |
void | restoreAccount (const AccountKey &accountKey, const Json::Value &jsonValue, bool overwrite=false) |
const Account | createBudgetAccount (const AccountKey &account) |
const Account | createSpendAccount (const AccountKey &account) |
const AccountInfo | getAccount (const AccountKey &account) const |
void | checkInvariants () const |
Json::Value | toJson () const |
const Account | setBudget (const AccountKey &topLevelAccount, const CurrencyPool &newBudget) |
const Account | setBalance (const AccountKey &account, CurrencyPool amount, AccountType typeToCreate) |
const CurrencyPool | getBalance (const AccountKey &account) const |
void | recuperate (const AccountKey &account) |
AccountSummary | getAccountSummary (const AccountKey &account, int maxDepth=-1) const |
Json::Value | getAccountSummariesJson (bool simplified=false, int maxDepth=-1) const |
const Account | importSpend (const AccountKey &account, const CurrencyPool &amount) |
const Account | syncFromShadow (const AccountKey &account, const ShadowAccount &shadow) |
void | markAccountOutOfSync (const AccountKey &account) |
bool | isAccountOutOfSync (const AccountKey &account) const |
void | ensureInterAccountConsistency () |
bool | isAccountInconsistent (const AccountKey &account) const |
bool | checkBudgetConsistency (const AccountKey &accountKey, int maxRecursion=-1) const |
void | getRecycledUp (const AccountKey &accountKey, CurrencyPool &recycledInUp, CurrencyPool &recycledOutUp) const |
std::vector< AccountKey > | getAccountKeys (const AccountKey &prefix=AccountKey(), int maxDepth=-1) const |
void | forEachAccount (const std::function< void(const AccountKey &, const Account &)> &onAccount) const |
size_t | size () const |
bool | empty () const |
Accounts | getAccounts (const AccountKey &root, int maxDepth=0) |
Static Public Member Functions | |
static Accounts | fromJson (const Json::Value &json) |
Public Attributes | |
Datacratic::Date | sessionStart |
Friends | |
class | ShadowAccounts |
interaccount consistency
Definition at line 372 of file account.cc.
Accounts RTBKIT::Accounts::getAccounts | ( | const AccountKey & | root, |
int | maxDepth = 0 |
||
) | [inline] |
const Account RTBKIT::Accounts::setBalance | ( | const AccountKey & | account, |
CurrencyPool | amount, | ||
AccountType | typeToCreate | ||
) | [inline] |