RefBank.h
void SetAccountRemover(AccountRemover *)
Sets the account remover callback.
Definition: RefBank.h:164
Class to handle the case where all references to an object are exhausted.
Definition: RefBank.h:67
void WithdrawAll()
Removes all accounts and runs the AccountRemover on all accounts.
Definition: RefBank.h:154
Definition: AssetID.h:37
uint32_t GetBalance(const T &account)
Returns the number of reference counts accumulated in the account.
Definition: RefBank.h:149
void Withdraw(const T &account, uint32_t amount=1)
Deduct a reference count amount.
Definition: RefBank.h:137
void Deposit(const T &account, uint32_t amount=1)
Adds a reference count amount.
Definition: RefBank.h:130