summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-05-27 01:36:32 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:10 -0400
commitc8bbbf3f9c3ee228e5d34b43a0b880c03a4297a5 (patch)
tree9aad42f358d082fa540cc4fc385dd0b18f4ac60c /walk.h
parentf8b45d534aa57af78601f66c874e794be2422a13 (diff)
downloadfork-ledger-c8bbbf3f9c3ee228e5d34b43a0b880c03a4297a5.tar.gz
fork-ledger-c8bbbf3f9c3ee228e5d34b43a0b880c03a4297a5.tar.bz2
fork-ledger-c8bbbf3f9c3ee228e5d34b43a0b880c03a4297a5.zip
(sort_transactions::post_accumulated_xacts): Created this function so
that interval_transactions has a way to post sorted xacts without calling flush().
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/walk.h b/walk.h
index 335ce028..f04eb41b 100644
--- a/walk.h
+++ b/walk.h
@@ -220,7 +220,13 @@ class sort_transactions : public item_handler<transaction_t>
delete sort_order;
}
- virtual void flush();
+ virtual void post_accumulated_xacts();
+
+ virtual void flush() {
+ post_accumulated_xacts();
+ item_handler<transaction_t>::flush();
+ }
+
virtual void operator()(transaction_t& xact) {
transactions.push_back(&xact);
}
@@ -402,7 +408,7 @@ class interval_transactions : public subtotal_transactions
transaction_t * last_xact;
bool started;
- item_handler<transaction_t> * sorter;
+ sort_transactions * sorter;
public:
interval_transactions(item_handler<transaction_t> * _handler,