summaryrefslogtreecommitdiff
path: root/src/value.h
Commit message (Collapse)AuthorAgeFilesLines
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-1/+1
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-16/+18
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-5/+5
|
* Removed value_t::price and balance_t::priceJohn Wiegley2012-03-071-2/+0
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Added value_t::to_size_t methodJohn Wiegley2012-02-171-10/+11
|
* Fixes for variable shadowing (28/28)John Wiegley2012-02-171-4/+4
|
* Work around a bug in Clang 3.0 (already fixed in pre-3.1)John Wiegley2012-02-101-1/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* Added some debug codeJohn Wiegley2011-02-101-0/+4
|
* Removed an invalid called to VERIFY()John Wiegley2010-06-131-1/+0
|
* In value_t::_dup, test if storage is uninitializedJohn Wiegley2010-06-131-1/+1
|
* For value_t, use boost::any to refer to objectsJohn Wiegley2010-06-131-27/+54
|
* Moved value_t::label() to value.ccJohn Wiegley2010-06-131-33/+1
|
* Added a new scope_value() inline helper functionJohn Wiegley2010-06-131-0/+4
|
* Untabified all source filesJohn Wiegley2010-06-111-63/+63
|
* Use ptr_deque for value_t::sequence_tJohn Wiegley2010-06-101-3/+3
| | | | | | | | | This is to work around undefined behavior according to the Standard, [lib.res.on.functions]/2: "In particular, the effects are undefined in the following cases: [..] - if an incomplete type (3.9) is used as a template argument when instantiating a template component."
* A further simplification of -V and -XJohn Wiegley2010-06-071-2/+1
| | | | | | | | With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity.
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-5/+5
|
* Value expression sequences are now comparableJohn Wiegley2010-06-051-2/+0
| | | | Fixes #228 / ED9388D7-E523-40EB-841B-9AE9BAA70329
* Allow expr_t& to be passed in a value_tJohn Wiegley2010-05-081-2/+27
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-5/+5
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-1/+1
|
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+7
|
* account.amount and .total return simplified valuesJohn Wiegley2009-11-101-0/+2
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+2
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-0/+4
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+2
|
* Added value_t::push_frontJohn Wiegley2009-11-041-1/+9
|
* Whitespace fixJohn Wiegley2009-11-041-2/+2
|
* Completed Python bindings for value_tJohn Wiegley2009-11-021-2/+1
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+28
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Change the value_t::POINTER type to value_t::SCOPEJohn Wiegley2009-10-301-47/+17
| | | | | scope_t pointers are the only kind that are ever stored in value objects, so there was no need to make it generic and use boost::any.
* Pushing null values into a sequence is legitimateJohn Wiegley2009-10-281-14/+6
|
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-2/+1
|
* Added some extra storage checks to value_tJohn Wiegley2009-10-251-0/+5
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-1/+1
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-2/+3
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+2
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+4
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-0/+1
| | | | | | | | This is necessary in order to redden negative amounts correctly under all circumstances, such as component amounts of a multi-commodity balance. Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
* Added a value_t macro: VALUE_OR_VEROJohn Wiegley2009-03-051-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+1
|
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-38/+36
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-3/+20
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+1
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-12/+12
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Fixed an alignment bug in value context displayJohn Wiegley2009-02-241-3/+1
|