GnuCash 7574033+
Loading...
Searching...
No Matches

Account public routines (C++ api). More...

#include <vector>
#include <functional>
#include <algorithm>
#include <optional>
#include <Account.h>
#include <SplitP.hpp>
#include <TransactionP.hpp>

Go to the source code of this file.

Typedefs

using SplitsVec = std::vector<Split*>
using AccountVec = std::vector<Account*>

Functions

const SplitsVec & xaccAccountGetSplits (const Account *)
void gnc_account_foreach_descendant (const Account *, std::function< void(Account *)> func)
template<typename Fn>
void gnc_account_foreach_split_between_dates (const Account *account, std::optional< time64 > start_date, std::optional< time64 > end_date, bool include_descendants, Fn &&fn)
void gnc_account_foreach_split (const Account *, std::function< void(Split *)>)
void gnc_account_foreach_split_until_date (const Account *acc, time64 end_date, std::function< void(Split *)> f)
Split * gnc_account_find_split (const Account *, std::function< bool(const Split *)>, bool)
 scans account split list (in forward or reverse order) until predicate split->bool returns true.
std::vector< const Account * > gnc_account_get_all_parents (const Account *account)

Detailed Description

Account public routines (C++ api).

Definition in file Account.hpp.