From c8bbbf3f9c3ee228e5d34b43a0b880c03a4297a5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 May 2005 01:36:32 +0000 Subject: (sort_transactions::post_accumulated_xacts): Created this function so that interval_transactions has a way to post sorted xacts without calling flush(). --- walk.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'walk.h') 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 delete sort_order; } - virtual void flush(); + virtual void post_accumulated_xacts(); + + virtual void flush() { + post_accumulated_xacts(); + item_handler::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 * sorter; + sort_transactions * sorter; public: interval_transactions(item_handler * _handler, -- cgit v1.2.3