Commit Graph
674 Commits
Author SHA1 Message Date
Johel Ernesto Guerrero Peña 7cb2099af5 feat: add module mp_units 2024-01-06 08:51:00 +01:00
Mateusz Pusz 6324f6dc2a Merge pull request #522 from mpusz/implicit_point_origin
feat: implementation of implicit point origins
2023-12-26 11:09:43 +01:00
Mateusz Pusz 1db975d48c refactor: quantity_cast implementation now use make_reference() 2023-12-26 10:33:04 +01:00
Mateusz Pusz 78872e1a14 fix: QuantitySpec[Unit] replaced with make_reference in value_cast 2023-12-26 10:31:38 +01:00
Mateusz Pusz be1705bc4a refactor: zeroth_point_origin() renamed to default_point_origin() and implicit_zeroth_point_origin renamed to zeroth_point_origin 2023-12-22 17:29:02 +01:00
Mateusz Pusz f2abaa28bc feat: quantity_from_zero() enabled for absolute point origins 2023-12-22 16:41:14 +01:00
Mateusz Pusz a962182e13 feat: implicit point origins compatibility between different quantity specs added 2023-12-22 16:35:06 +01:00
Mateusz Pusz 31a5c76672 feat: interconvertible(QuantitySpec, QuantitySpec) added 2023-12-22 15:51:03 +01:00
Mateusz Pusz cccf1e24b0 refactor: point origin can't be set for a unit that does not have an associated quantity kind 2023-12-21 12:25:09 +01:00
Mateusz Pusz fe099b5ad1 feat: propagation of point origins for scaled units added 2023-12-21 12:25:09 +01:00
Mateusz Pusz 5f840d7079 fix: point origins comparison fixed 2023-12-21 12:25:09 +01:00
Mateusz Pusz 10a2e6dc0d feat: 💥 initial implementation of implicit point origins 2023-12-21 12:25:09 +01:00
Mateusz Pusz 7c83f586db refactor: value_casts cleanup 2023-12-20 09:24:35 +01:00
Mateusz Pusz 436463b7a7 feat: value_cast<Unit, Representation> added 2023-12-19 18:19:22 +01:00
Mateusz Pusz ce6db6950f feat: quantity_point support added for quantity_cast and value_cast 2023-12-18 16:40:05 +01:00
Mateusz Pusz bd9e4f944c fix: QuantityLike conversions required Q::rep instead of using one provided by quantity_like_traits 2023-12-18 15:40:25 +01:00
Mateusz Pusz 13b450e8cf fix: quantity_point::point_for(PO) constraints fixed 2023-12-03 19:24:29 +01:00
Mateusz Pusz 40c2ecb2aa feat: equivalent point origins handling improved 2023-12-03 18:57:34 +01:00
Mateusz Pusz da8721b997 feat: users are now allowed to inherit their ow types from absolute point origins 2023-12-03 16:15:38 +01:00
Mateusz Pusz 611e380ed4 fix: missing constexpr added to a quantity_point constructor 2023-12-02 14:17:20 +01:00
Mateusz Pusz b6b5832c56 refactor: unit_symbol changed to consteval 2023-11-30 10:56:09 +01:00
Mateusz Pusz 0e29354bc0 docs: TODO note added to unit_symbol() 2023-11-30 10:55:41 +01:00
Mateusz Pusz 2c8783bda1 refactor: unit_symbol_formatting enums now use std::int8_t as a representation type 2023-11-30 10:54:49 +01:00
Mateusz Pusz 29c83c0d84 feat: 💥 symbol_text definition simplified 2023-11-30 09:25:29 +01:00
Mateusz Pusz 97d5bb569b refactor: more type members added to fixed_string definition 2023-11-30 09:23:13 +01:00
Mateusz Pusz 683c49bef3 style: clang-format updated to 17.0.5 in pre-commit 2023-11-28 14:19:04 +01:00
Mateusz Pusz fa596fffc6 refactor: 💥 make_xxx factory functions replaced with two-parameter constructors
Resolves #521
2023-11-28 11:52:37 +01:00
Mateusz Pusz 80129b32d7 Merge branch 'master' of github.com:mpusz/units 2023-11-08 15:37:16 -10:00
Mateusz Pusz ae69e2e2b6 fix: are_ingredients_convertible now mandates explicit conversion for To dimensionless quantities 2023-11-06 16:52:10 -10:00
Mateusz Pusz 162514c19e docs: "canonical unit" added to glossary and its documentation in code was updated 2023-11-04 21:36:03 +01:00
Mateusz Pusz d195e2b3bf fix: equality for dimensions fixed to provide transitivity 2023-11-03 21:18:57 +01:00
Mateusz Pusz 1f14184ac3 style: clang-format updated to clang 17 2023-10-25 14:38:26 +02:00
Mateusz Pusz 4abef7b245 refactor: duplicated forward declaration of quantity removed 2023-10-21 08:17:55 +02:00
Mateusz Pusz df2616927d refactor: quantity operators refactored 2023-10-20 21:21:07 +02:00
Mateusz Pusz 15922b5bd8 fix: CommonlyInvocableQuantities was overconstrained for the current library design 2023-10-20 09:39:24 +02:00
Mateusz Pusz eaa2ddbf01 refactor: quantity operators constraints refactored 2023-10-20 08:42:22 +02:00
Mateusz Pusz 32ea1bd9b4 feat: common_type with a raw value is not needed anymore as for a long time now raw values are not convertible to the dimensionless quantities 2023-10-18 21:03:21 +02:00
Mateusz Pusz 8e48906729 refactor: quantity_from_origin_ data member now has much less friendly name 2023-10-17 14:29:59 +02:00
Mateusz Pusz abafd1d38e refactor: numerical_value_ data member now has much less friendly name 2023-10-17 14:16:22 +02:00
Mateusz Pusz 6e7a2fd0bb refactor: order of overload for Unit changed 2023-10-17 12:11:32 +02:00
Mateusz Pusz 98d07b9ed1 feat: 💥 quantity_spec and its kind should not compare equal 2023-10-17 09:45:31 +02:00
Mateusz Pusz ff3d1e87fa refactor: 💥 unit_symbol<fmt>(U) signature refactored and the resulting text can now also be used at runtime
Resolves (#501)
2023-10-17 09:09:18 +02:00
Mateusz Pusz 909d9a7089 feat: basic_fixed_string(const CharT*, std::integral_constant<std::size_t, N>) constructor added 2023-10-17 08:59:25 +02:00
Mateusz Pusz daadccebe0 refactor: additional constraints added to the fixed_string(CharT) constructor 2023-10-17 08:25:13 +02:00
Mateusz Pusz 18b4d3be33 fix: missing header include added to type_list.h 2023-10-17 08:20:28 +02:00
Mateusz Pusz 9d708c5e39 feat: 💥 mutating interface removed from fixed_string 2023-10-17 08:19:26 +02:00
Mateusz Pusz f4dfdc072e fix: printing of half_high_dot now properly updates the iterator 2023-10-17 08:15:10 +02:00
Mateusz Pusz 556df31590 feat: equality for dimensions now will allow derived classes as well (but not from derived_dimension) 2023-10-15 17:08:19 +02:00
Mateusz Pusz b96be72457 feat: 💥 quantity_point does not provide zero() anymore 2023-10-15 09:39:18 +02:00
Mateusz Pusz fb71971ef0 fix: iterator is now properly updated for all cases in unit_symbol 2023-10-14 11:44:50 +02:00