summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index 17ac4378..a1d85892 100644
--- a/src/value.h
+++ b/src/value.h
@@ -421,6 +421,13 @@ public:
}
void in_place_reduce(); // exists for efficiency's sake
+ value_t unreduce() const {
+ value_t temp(*this);
+ temp.in_place_unreduce();
+ return temp;
+ }
+ void in_place_unreduce(); // exists for efficiency's sake
+
// Return the "market value" of a given value at a specific time.
value_t value(const optional<datetime_t>& moment = none,
const optional<commodity_t&>& in_terms_of = none) const;