diff options
author | John Wiegley <johnw@newartisans.com> | 2004-07-27 02:23:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-07-27 02:23:02 -0400 |
commit | d7dd02276c7c9ef4c8affefc6d6ed1e3431535b9 (patch) | |
tree | f1f461724c0079b5c0a0aa3b9290880a8b4c7f5e /item.h | |
parent | dd5680c2674fe9ce458941ec9b3978cd7dda9bff (diff) | |
download | fork-ledger-d7dd02276c7c9ef4c8affefc6d6ed1e3431535b9.tar.gz fork-ledger-d7dd02276c7c9ef4c8affefc6d6ed1e3431535b9.tar.bz2 fork-ledger-d7dd02276c7c9ef4c8affefc6d6ed1e3431535b9.zip |
further reorganization
Diffstat (limited to 'item.h')
-rw-r--r-- | item.h | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -15,6 +15,8 @@ typedef std::deque<item_t *> items_deque; struct item_t { struct item_t * parent; + items_deque subitems; + unsigned int index; std::time_t date; std::string payee; @@ -22,8 +24,6 @@ struct item_t balance_pair_t value; balance_pair_t total; - items_deque subitems; - item_t() : parent(NULL), index(0), date(-1), account(NULL) {} ~item_t() { @@ -38,14 +38,11 @@ struct item_t class constraints_t; -item_t * walk_accounts(const account_t * account, - const constraints_t& constraints, - const bool compute_subtotals); +item_t * walk_accounts(const account_t * account, + const constraints_t& constraints); -item_t * walk_items(const item_t * top, - const account_t * account, - const constraints_t& constraints, - const bool compute_subtotals); +item_t * walk_items(const item_t * top, const account_t * account, + const constraints_t& constraints); item_t * walk_entries(entries_list::const_iterator begin, entries_list::const_iterator end, |