RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Classes | Public Member Functions | Public Attributes
RTBKIT::ShadowAccounts Struct Reference

List of all members.

Classes

struct  AccountEntry

Public Member Functions

const ShadowAccount activateAccount (const AccountKey &account)
const ShadowAccount syncFromMaster (const AccountKey &account, const Account &master)
const ShadowAccount initializeAndMergeState (const AccountKey &account, const Account &master)
void checkInvariants () const
const ShadowAccount getAccount (const AccountKey &accountKey) const
bool accountExists (const AccountKey &accountKey) const
bool createAccountAtomic (const AccountKey &accountKey)
void syncTo (Accounts &master) const
void syncFrom (const Accounts &master)
void sync (Accounts &master)
bool isInitialized (const AccountKey &accountKey) const
bool authorizeBid (const AccountKey &accountKey, const std::string &item, Amount amount)
void commitBid (const AccountKey &accountKey, const std::string &item, Amount amountPaid, const LineItems &lineItems)
void cancelBid (const AccountKey &accountKey, const std::string &item)
void forceWinBid (const AccountKey &accountKey, Amount amountPaid, const LineItems &lineItems)
void commitDetachedBid (const AccountKey &accountKey, Amount amountAuthorized, Amount amountPaid, const LineItems &lineItems)
 Commit a bid that has been detached from its tracking.
Amount detachBid (const AccountKey &accountKey, const std::string &item)
void attachBid (const AccountKey &accountKey, const std::string &item, Amount amountAuthorized)
void logBidEvents (const Datacratic::EventRecorder &eventRecorder)
std::vector< AccountKeygetAccountKeys (const AccountKey &prefix=AccountKey()) const
void forEachAccount (const std::function< void(const AccountKey &, const ShadowAccount &)> &onAccount) const
void forEachInitializedAccount (const std::function< void(const AccountKey &, const ShadowAccount &)> &onAccount)
size_t size () const
bool empty () const

Public Attributes

std::function< void(AccountKey)> onNewAccount

Detailed Description

Definition at line 1239 of file account.h.


Member Function Documentation

const ShadowAccount RTBKIT::ShadowAccounts::initializeAndMergeState ( const AccountKey account,
const Account master 
) [inline]

Initialize an account by merging with the initial state as received from the master banker.

Definition at line 1266 of file account.h.


Member Data Documentation

Callback called whenever a new account is created. This can be assigned to in order to add functionality that must be present whenever a new account is created.

Definition at line 1244 of file account.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator