Commit Graph

26 Commits

Author SHA1 Message Date
Mateusz Pusz
fb8552b1d9 refactor: core-fmt and core-ostream modules merged with core 2024-01-06 08:51:01 +01:00
Mateusz Pusz
0eaf6e2e56 refactor: modules support redesigned 2024-01-06 08:51:01 +01:00
Johel Ernesto Guerrero Peña
7cb2099af5 feat: add module mp_units 2024-01-06 08:51:00 +01:00
Mateusz Pusz
bf51bfc96f refactor(example): quantity_from_zero() used in exchange_to 2023-12-22 16:42:03 +01:00
Mateusz Pusz
10a2e6dc0d feat: 💥 initial implementation of implicit point origins 2023-12-21 12:25:09 +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
dc4d73a90c fix(example): fixing compilation after the previous commit 2023-11-08 15:36:06 -10:00
Mateusz Pusz
fe15572e90 feat(example): unit symbols added to the currency example 2023-11-08 15:30:24 -10:00
Mateusz Pusz
2e26eed59d feat: numerical_value_ref_in disallowed for rvalues 2023-09-13 19:59:49 +02:00
Mateusz Pusz
e085beef40 feat: qp.quantity_from(PO) added 2023-09-13 11:57:22 +02:00
Mateusz Pusz
6c576d7120 style: another whitespace removed from the currency example 2023-09-13 11:27:56 +02:00
Mateusz Pusz
3b2ca4084a refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
Resolves #479 and relates to #477
2023-09-13 10:09:08 +02:00
Mateusz Pusz
a7711cb301 refactor: quantity::value() refactored to quantity::value_ref_in(U) 2023-09-13 09:23:59 +02:00
Mateusz Pusz
f1c2c74ab0 refactor: quantity::value() renamed to quantity::numerical_value()
According to https://jcgm.bipm.org/vim/en/1.19.html "quantity value" also contains a unit. According to https://jcgm.bipm.org/vim/en/1.20.html "numerical value" is the correct term for just a number.

Resolves #423
2023-08-30 11:30:35 +02:00
Mateusz Pusz
a9204e2473 refactor: number() and number_in() renamed to value() and value_in()
Resolves #423
2023-08-23 17:15:32 +02:00
Mateusz Pusz
e49e6c40ae feat: absolute() member function removed from quantity_point 2023-08-23 14:52:09 +02:00
Mateusz Pusz
71981172c3 feat: quantity_point does not take a default origin anymore + common_qs logic removed from the binary operators 2023-08-23 10:41:37 +02:00
Mateusz Pusz
52ce2b21f7 refactor: iostream.h renamed to ostream.h 2023-06-23 15:03:04 +02:00
Mateusz Pusz
52bbd00ab4 style: clang-format new rules applied to the code base 2023-05-26 14:20:00 +02:00
Mateusz Pusz
7d9ae3ec31 refactor: mp_units subdirectory renamed to mp-units 2023-05-25 12:47:10 +02:00
Mateusz Pusz
299032a7e8 refactor: conversion from quantity to quantity_point is now explicit 2023-05-24 22:42:11 +02:00
Mateusz Pusz
9322aa25e4 Revert "feat: runtime conversion factors between units support added"
This reverts commit cc8a088013.
2023-05-16 16:41:51 +02:00
Mateusz Pusz
cc8a088013 feat: runtime conversion factors between units support added 2023-05-16 15:01:15 +02:00
Mateusz Pusz
9d085cbe7e refactor(example): [[nodiscard]] added for currency 2023-05-16 15:00:18 +02:00
Mateusz Pusz
4209ac20fc refactor(example): quantity_point support added to currency example 2023-05-14 13:32:12 +02:00
Mateusz Pusz
c892889901 feat(example): currency and unmanned_aerial_vehicle examples added 2023-05-14 10:38:08 +02:00