summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--walk.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/walk.h b/walk.h
index dbc286ce..871a9639 100644
--- a/walk.h
+++ b/walk.h
@@ -154,6 +154,20 @@ class set_account_value : public item_handler<transaction_t>
virtual void operator()(transaction_t& xact);
};
+class push_to_transactions_list : public item_handler<transaction_t>
+{
+ public:
+ transactions_list& xact_list;
+
+ push_to_transactions_list(transactions_list& _xact_list,
+ item_handler<transaction_t> * handler = NULL)
+ : item_handler<transaction_t>(handler), xact_list(_xact_list) {}
+
+ virtual void operator()(transaction_t& xact) {
+ xact_list.push_back(&xact);
+ }
+};
+
class sort_transactions : public item_handler<transaction_t>
{
typedef std::deque<transaction_t *> transactions_deque;