Commit graph

194 commits

Author SHA1 Message Date
02f44264d7 xo-unit: expand bpu docs 2024-05-09 10:35:02 -04:00
8844390090 xo-unit: refactor bu_store ns + expand docs 2024-05-08 23:51:49 -04:00
83aceebe33 xo-unit: expand bu_store docs + uml diagram 2024-05-08 23:24:52 -04:00
9f9d897dbf xo-unit: streamline unit spec + docs 2024-05-08 22:13:35 -04:00
a998c9a989 xo-unit: minor reorg 2024-05-08 21:43:56 -04:00
5d07fa172e xo-unit: minor tidy 2024-05-08 21:40:58 -04:00
565e50a35d xo-unit: minor streamlining 2024-05-08 18:11:00 -04:00
30d0d4f7eb xo-unit: refactor: prune never-invoked code 2024-05-08 16:57:56 -04:00
a9bb9631c2 xo-unit: refactor: move bu_fallback_abbrev to bu_store 2024-05-08 16:55:54 -04:00
9f85019101 xo-unit: streamline: remove OBSOLETE code 2024-05-08 16:53:44 -04:00
6ab163b2ea xo-unit: refactor: bpu_store.hpp -> bu_store.hpp for consistency 2024-05-08 16:48:10 -04:00
867132c84c xo-unit: refactor: bpu_store replaces if-then tree for bu abbrevs 2024-05-08 16:34:13 -04:00
f4c1ef5ee6 xo-unit: + abbrevs + tests for imperial units {in,ft,yd,mi} 2024-05-08 11:02:39 -04:00
5f20b53485 xo-unit: refactor: basis_unit2_abbrev_type -> bu_abbrev_type 2024-05-08 11:02:14 -04:00
5fd6bd3148 xo-unit: refactor: ++ docs 2024-05-07 23:12:04 -04:00
d767675dd9 xo-unit: docs extension 2024-05-07 21:48:48 -04:00
22dbb5e529 xo-unit: streamline: rename namespacesu -> u 2024-05-07 15:21:17 -04:00
2c3638d394 xo-unit: retire mixed scaled_unit/natural_unit *,/ after all 2024-05-07 15:13:28 -04:00
aad6bd50e8 xo-unit: simplify-api: represent quantity<> unit using scaled_unit<> 2024-05-07 15:07:22 -04:00
28023d8a45 xo-unit: docs: document xo::qty::dimension enum 2024-05-07 13:54:28 -04:00
1a2023a9a2 xo-unit: + .is_natural() method in natural_unit, scaled_unit 2024-05-07 13:37:44 -04:00
ad6bc34d62 xo-unit: bugfix: = should be == 2024-05-07 13:36:56 -04:00
ee083cda00 xo-unit: refactor: rename dim -> dimension (but provide typealias) 2024-05-07 13:36:36 -04:00
45a0ac3f01 xo-unit: quantity: minor refactor 2024-05-07 13:35:32 -04:00
4a4dcd8072 xo-unit: xquantity stream inserter: tidy 2024-05-07 11:55:26 -04:00
608845391c xo-unit: docs: doxygen @file nits 2024-05-07 11:54:55 -04:00
ce113b557a xo-unit: + arithmetic (*,/) for scaled_unit/natural_unit pairs 2024-05-07 11:51:50 -04:00
e72760925f xo-unit: + scaled_unit.is_natural() 2024-05-07 11:51:32 -04:00
6ba4b23ece xo-unit: docs: doxygen comments + refactoring 2024-05-07 10:45:48 -04:00
1df4697a52 xo-unit: syntax: missing { 2024-05-07 10:44:59 -04:00
ae479775b8 xo-unit: + 365-day volatility factory 2024-05-07 10:44:37 -04:00
5a443b287f xo-unit: + unit time constants 2024-05-07 10:44:26 -04:00
24b609173d xo-unit: + unit distance constants 2024-05-07 10:43:57 -04:00
eb050392a2 xo-unit: + unit mass constants 2024-05-07 10:42:28 -04:00
d7ea576d2a xo-unit: scaled_unit: add several milling units [wip] 2024-05-07 10:40:50 -04:00
df6cfbb25c xo-unit: promote to common repr in mixed-type operator* w/ quantity
Avoid truncating when, for example, multiplying
quantity<Unit, int> * double.

Add targeted unit test for this
2024-05-07 10:38:38 -04:00
3e86011f51 xo-unit: simplify quantity
Always get ratio numerator/denominator type from NaturalUnit
2024-05-07 10:35:54 -04:00
166276c710 xo-unit: add imperial distance units inch/foot/yard/mile 2024-05-07 10:31:51 -04:00
e4e853acf7 xo-unit: cosmetic, formatting 2024-05-07 10:07:19 -04:00
8d5fcda096 xo-unit: quantity: + subtraction operator 2024-05-04 15:11:16 -04:00
e09c6670bd xo-unit: minor comment tidy 2024-05-04 14:54:15 -04:00
6b95d09719 xo-unit: bugfix: promote representation accurately in xquantity 2024-05-04 14:53:15 -04:00
f49cce98b9 xo-unit: + quantity.reciprocal() 2024-05-04 14:52:52 -04:00
cf65def417 xo-unit: + 30-day volatility unit, factory function 2024-05-04 14:52:19 -04:00
cc00ed83a3 xo-unit: quantity: + addition for quantities 2024-05-04 14:51:46 -04:00
9a5def616b xo-unit: bugfix: need handling for power=-1/2 2024-05-04 14:50:58 -04:00
cb7bd4d1f2 xo-unit: + quantity methods .is_dimensionless(), arith conversion 2024-05-04 11:37:24 -04:00
779e7e0569 xo-unit: + with_units + example 2024-05-04 10:36:03 -04:00
4ee89948d9 xo-unit: streamline with_units_from() using auto 2024-05-04 01:50:46 -04:00
c5c2f83c90 xo-unit: qty::grams() etc. infer quantity::repr_type from argument 2024-05-04 01:45:31 -04:00