Mateusz Pusz
94bd2a23ca
build: got rid of old gcc hacks
2023-09-26 18:25:03 +02:00
Mateusz Pusz
bfbc1785b8
feat: isq::activity added and becquerel definition updated to benefit from it
2023-09-26 10:37:08 +02:00
Mateusz Pusz
ff4755d5e5
feat: quantity_ref_from disallowed for rvalues
2023-09-13 20:11:59 +02: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
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
2c9502a2a9
test: units tests for point origin arithmetics added
2023-08-31 19:02:04 +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
f29c57d367
style: formatting to make pre-commit happy
2023-08-25 23:05:36 +02:00
Mateusz Pusz
8b661b9b0d
test: clang does not allow skipping template template parameters
2023-08-24 19:16:36 +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
ae92b49775
refactor: op[U] for quantity and quantity_point replaced with .in(U)
...
Resolves #469
2023-08-23 16:46:15 +02:00
Mateusz Pusz
5af82e3162
refactor: point_from renamed to point_for
2023-08-23 15:42:55 +02:00
Mateusz Pusz
fb9f288c56
feat: quantity_point construction from quantity made private + make_quantity_point added
2023-08-23 12:49:14 +02:00
Mateusz Pusz
ed279c43ab
feat: quantity_point CTAD from Quantity removed
2023-08-23 11:53:49 +02:00
Mateusz Pusz
7594048850
fix: relative_point_origin::quantity_spec setting fixed
2023-08-23 11:42:43 +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
07ce64d6e7
refactor: relative() renamed to quantity_from_origin()
...
Resolves #479
2023-08-18 18:49:04 +02:00
Mateusz Pusz
752408449f
feat: PointOrigin arithmetics support added
2023-08-18 18:35:41 +02:00
Mateusz Pusz
794ac2fa67
test: more binary operators tests added for quantity_point
2023-08-03 11:36:07 +02:00
Mateusz Pusz
3628e99aaa
feat: CTAD for quantity_point can now deduce point_origin
2023-08-03 11:31:58 +02:00
Mateusz Pusz
ccdf5d319a
feat: point_from extended with the case of the same origin
2023-08-02 11:20:32 +02:00
Mateusz Pusz
730f4da136
test: various origins tests added for quantity_point
2023-08-01 22:07:24 +02:00
Mateusz Pusz
b19bf0761c
feat: relative_point_origin support added
...
Relates to #414
2023-08-01 17:24:01 +02:00
Mateusz Pusz
7ce8173b40
test: initial version of quantity_point_test added
2023-08-01 12:04:31 +02:00
Mateusz Pusz
33d9f43b0f
style: clang-format-16 applied to all the code base
2023-03-29 17:05:02 +02:00
Mateusz Pusz
b221dace3f
style: clang-format applied to the remaining files
2022-04-02 21:36:42 +02:00
Mateusz Pusz
ed5749a52b
refactor: quantity op+() and op-() reimplemented in terms of reference rather then quantity types
...
`common_quantity`, `common_quantity_for`, `common_quantity_point`, `common_quantity_kind`, and `common_quantity_point_kind` removed
Resolves #290
2021-07-27 14:40:05 +02:00
Johel Ernesto Guerrero Peña
80eefec97c
fix: add quantity_point::origin, like std::chrono::time_point::clock
2021-06-29 20:44:27 +02:00
Mateusz Pusz
46e1e5e932
refactor: US system renamed to USCS
2021-04-16 12:40:52 +02:00
Mateusz Pusz
37cfc53d1d
refactor: IWYU applied to the source files
...
`alternative_namespaces` examples left out as I consider them a subject for removal in the nearest future.
2021-03-30 13:21:05 +02:00
Mateusz Pusz
901b09fd52
refactor: quantity::count() renamed to quantity::number()
...
Resolves #259
2021-03-19 06:47:37 +01:00
Johel Ernesto Guerrero Peña
018c5837f9
refactor: rename unit_constants to references
...
Addresses https://github.com/mpusz/units/pull/261#discussion_r596663522 .
2021-03-18 22:37:25 +01:00
Mateusz Pusz
bbbb77286c
refactor: physical replaced with isq
...
Refers to #249
2021-03-16 12:03:25 +01:00
Mateusz Pusz
23720d055e
refactor: Refactored the library file tree
...
Resolves #249
2021-03-16 09:32:28 +01:00
Johel Ernesto Guerrero Peña
8d6d43b32d
feat: quantity point-like support
2021-02-17 19:40:52 +01:00
Johel Ernesto Guerrero Peña
6bf09aa646
feat: quantity_kind and quantity_point_kind
2021-02-15 19:31:08 +01:00
Mateusz Pusz
6d7cda949e
fix: quantity_cast now correctly casts to an alias_unit
2021-01-02 10:56:50 +01:00
Mateusz Pusz
008dec79ea
refactor: si.h usage limited
2020-12-28 14:34:27 +01:00
Mateusz Pusz
c6a5d9e222
fix: broken requires expressions fixed
2020-09-23 16:38:40 +02:00
Mateusz Pusz
2a56438f1c
refactor: file tree with systems defninitions refactored to limit ODR issues
...
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00
Mateusz Pusz
79558a6d72
refactor: systems defined in terms of SI moved under si namespace
2020-09-10 17:14:33 +02:00
Mateusz Pusz
9cd0cb4105
feat: two argument explicit cast support added
2020-09-10 13:01:38 +02:00
Mateusz Pusz
58daacfd58
fix: unit tests fixed for DOWNCAST_MODE = OFF
2020-09-10 11:33:58 +02:00
Mateusz Pusz
e367afed71
Merge branch 'downcasting_2.0'
2020-09-09 20:31:03 +02:00
Mateusz Pusz
9527b39005
refactor: 💥 q_* UDL renamed to _q_*
...
We had some fun exploring the STD UDLs for potential collisions,
we have learnt our lesson and know how to proceed.
Now is high time to start behaving and obeying C++ rules.
2020-09-09 19:20:35 +02:00
Mateusz Pusz
77e11173bf
Unit tests compilation fixed on VS
2020-09-06 15:35:08 +02:00
Johel Ernesto Guerrero Peña
4aeb9d305a
test: what we mean
...
a concept can fail for whatever requirement,
and maybe the "main" one actually works
(== in this case)
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
9f9397ffc2
test: convert comments to code
2020-09-06 09:55:59 +02:00