summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 01:48:21 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 05:03:52 -0600
commit8d6bf11334562d7781b339cf822a93ff42fee2b5 (patch)
treea13b4490aea08f6b0340d3a54d933f0e31a7e66e /src/commodity.h
parent5d8cb30774cf630cddd26407202c1cad8568bbef (diff)
downloadfork-ledger-8d6bf11334562d7781b339cf822a93ff42fee2b5.tar.gz
fork-ledger-8d6bf11334562d7781b339cf822a93ff42fee2b5.tar.bz2
fork-ledger-8d6bf11334562d7781b339cf822a93ff42fee2b5.zip
All tests are working again but one
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commodity.h b/src/commodity.h
index a1ad0147..524daaab 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -271,6 +271,10 @@ public:
const bool reflexive = true);
void remove_price(const datetime_t& date, commodity_t& commodity);
+ void map_prices(function<void(datetime_t, const amount_t&)> fn,
+ const optional<datetime_t>& moment = none,
+ const optional<datetime_t>& _oldest = none);
+
optional<price_point_t>
find_price(const optional<commodity_t&>& commodity = none,
const optional<datetime_t>& moment = none,