summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-10 17:54:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-10 17:54:47 -0400
commit7a1d0d46146ecdb79a156ea1197bc3f1bd30cb95 (patch)
treefcca3d58b29c119ff42e70a08c35007b3e399d82 /walk.h
parent799e97e420133eb25a321f30a61f857831a93dac (diff)
downloadfork-ledger-7a1d0d46146ecdb79a156ea1197bc3f1bd30cb95.tar.gz
fork-ledger-7a1d0d46146ecdb79a156ea1197bc3f1bd30cb95.tar.bz2
fork-ledger-7a1d0d46146ecdb79a156ea1197bc3f1bd30cb95.zip
new debug code; automated transactions now use value expression predicates
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/walk.h b/walk.h
index 7ad8264c..f54138df 100644
--- a/walk.h
+++ b/walk.h
@@ -82,9 +82,9 @@ void handle_transaction(transaction_t * xact,
template <typename Function>
void walk_entries(entries_list::iterator begin,
entries_list::iterator end,
- const Function& functor,
- const node_t * predicate,
- unsigned int flags)
+ const Function& functor,
+ const std::string& predicate,
+ unsigned int flags)
{
item_predicate<transaction_t> pred_functor(predicate);
@@ -200,7 +200,7 @@ void for_each_account(account_t * account, const Function& functor)
}
void calc__accounts(account_t * account,
- item_predicate<transaction_t>& pred_functor,
+ const item_predicate<transaction_t>& pred_functor,
unsigned int flags);
inline void sum__accounts(account_t * account)
@@ -215,12 +215,12 @@ inline void sum__accounts(account_t * account)
}
template <typename Function>
-void walk_accounts(account_t * account,
- const Function& functor,
- const node_t * predicate,
- unsigned int flags,
- const bool calc_subtotals,
- const node_t * sort_order = NULL)
+void walk_accounts(account_t * account,
+ const Function& functor,
+ const std::string& predicate,
+ unsigned int flags,
+ const bool calc_subtotals,
+ const node_t * sort_order = NULL)
{
item_predicate<transaction_t> pred_functor(predicate);