From 4b057599626538a0d1463c63f2110d2fe5baa2e6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 23 Mar 2012 16:46:11 -0500 Subject: Fixed sorting of equity output --- src/balance.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/balance.h') diff --git a/src/balance.h b/src/balance.h index 11c370bb..704b4072 100644 --- a/src/balance.h +++ b/src/balance.h @@ -506,6 +506,14 @@ public: */ balance_t strip_annotations(const keep_details_t& what_to_keep) const; + /** + * Iteration primitives. `map_sorted_amounts' allows one to visit + * each amount in balance in the proper order for displaying to the + * user. Mostly used by `print' and other routinse where the sort + * order of the amounts' commodities is significant. + */ + void map_sorted_amounts(function fn) const; + /** * Printing methods. A balance may be output to a stream using the * `print' method. There is also a global operator<< defined which -- cgit v1.2.3