Mateusz Pusz
624b7c7404
fix: some fixes revealed during clang compilation
2023-08-24 19:14:23 +02:00
Mateusz Pusz
7fc88facd6
feat: arcminute and arcsecond support added
2023-06-19 14:01:36 +02:00
Mateusz Pusz
3887b642fb
test: SI tests updated for V2
2023-06-09 09:31:14 +02:00
Mateusz Pusz
07687f9ef6
refactor: _generic/dimensionless.h_ removed (units added to _unit.h_)
2022-12-25 17:14:54 +01:00
Mateusz Pusz
1096d8d8ba
fix: luminous flux support fixed
2022-09-01 12:18:18 +02:00
Mateusz Pusz
a92a315bda
feat: angular acceleration support added
2022-09-01 12:05:20 +02:00
Mateusz Pusz
1cb9d35d66
fix: radian_per_second unit symbol fixed
2022-09-01 12:02:45 +02:00
Chip Hogg
ea83af8aa9
Rename as_magnitude<...>() to mag<...>()
...
This is easier to write and to read.
2022-07-29 01:46:06 +00:00
Chip Hogg
ef9e6522ca
Merge branch 'master' into chiphogg/switch-to-mag
2022-06-15 20:50:30 +00:00
Mateusz Pusz
46b3781743
Revert "refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols"
...
This reverts commit db09a065ab .
2022-05-24 14:20:17 +02:00
Mateusz Pusz
38fb9911a9
refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols
2022-05-24 12:56:14 +02:00
Mateusz Pusz
db09a065ab
refactor: 💥 ! " ⋅ " replaced with "⋅" in derived unit symbols
2022-05-24 12:48:07 +02:00
Mateusz Pusz
13f03bfe70
feat: luminous_flux support added
2022-05-13 14:31:13 +02:00
Chip Hogg
5fb468697b
Merge branch 'master' into chiphogg/switch-to-mag
2022-05-12 16:12:01 +00:00
Mateusz Pusz
4361cb874e
fix: hectare definition fixed to be a prefixed version of are + other units
...
Relates to #359
2022-04-27 19:32:21 +02:00
Chip Hogg
d19b2803ce
Migrate units from ratio to Magnitude
...
This commit is huge, but hopefully the cognitive load is not too bad.
The bulk of this commit is just some fairly mechanical updates from
`ratio` to `Magnitude`. Other things to call out:
- `UnitRatio` goes away. We don't need this concept, because Magnitude
can't even _represent_ anything that doesn't satisfy it.
- I commented out some formatting test cases where the precise
expression changes, but the number is completely equivalent. We will
need to decide how we want to handle Magnitude formatting as a
separate, follow-on task. But at least Magnitude gives us all the
tools we'll need to do so!
2022-04-11 15:16:16 +00:00
Mateusz Pusz
b221dace3f
style: clang-format applied to the remaining files
2022-04-02 21:36:42 +02:00
Mateusz Pusz
ae7aca5fa0
test: uncommented some already supported cases
...
Resolves #206
2021-05-11 20:12:46 +02:00
Mateusz Pusz
309da80c32
refactor: unit_text.h header include moved to text-related targets
2021-03-31 12:25:26 +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
Mateusz Pusz
bbbb77286c
refactor: physical replaced with isq
...
Refers to #249
2021-03-16 12:03:25 +01:00
Mateusz Pusz
cfc90f4aac
refactor: 💥 basic_concepts, quantity and quantity_cast refactored
...
BREAKING CHANGE: ScalableNumber renamed to QuantityValue
Resolves #107
2020-10-06 18:17:52 +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
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
3e9d5ca189
refactor: ♻️ unitless renamed to one
...
Resolves #27
2020-09-09 11:20:55 +02:00
Mateusz Pusz
76b6c2972d
test: more unit tests for dimensionless quantity
2020-09-08 18:45:14 +02:00
Mateusz Pusz
563b358d5e
feat!: 💥 dimensionless quantities refactored
...
Dimensionless quantities are now represented by quantity types rather
than by plain representation types. Only dimensionless quantities with
`unitless` unit are implicitly convertible from representation types.
`units::exp()` now is a function doing std::exp() on a representation
type (previous `units::exp` class template was renamed to
`units::exponent`).
BREAKING_CHANGE: gcc-9.3 support removed
BREAKING_CHANGE: `exp` and `Exp` renamed to `exponent` and `Exponent`
Resolves #27
Resolves #42
2020-09-08 11:02:16 +02:00
Mateusz Pusz
5c98924efb
Downcasting reworked to allow OFF and AUTO modes
2020-08-19 13:37:57 +02:00
Mateusz Pusz
9f94a73bba
Custom is_same implementation added
2020-06-29 20:30:59 +02:00
Mateusz Pusz
d2c66e79f5
angular_velocity support fixed
2020-06-27 19:23:32 +02:00
Mateusz Pusz
9125c1bf2e
Merge branch 'master' of github.com:mpusz/units
2020-06-27 19:15:57 +02:00
Mateusz Pusz
d171f5451e
NTTP ratio support added ( resolves #49 )
2020-06-27 19:15:46 +02:00
Mike Ford
db5a6e9cbd
added angular velocity dimension, header file and test in si system
2020-06-27 19:00:46 +02:00
Mateusz Pusz
61fadb8ebc
dim_velocity renamed to dim_speed
2020-05-14 16:00:38 +02:00
Mateusz Pusz
ce301748dd
Velocity renamed to Speed ( resolves #103 )
2020-05-10 17:31:47 +02:00
Mateusz Pusz
7e935a4108
Physical units put in the physical namespace (I am sorry)
2020-05-08 22:39:24 +02:00
Ramzi Sabra
7b8ad8e37c
changed hectare to an alias_unit
2020-05-08 10:41:38 +02:00
Ramzi Sabra
6f8bddc832
added more prefixed SI units; added alias_unit and prefixed_alias_unit types
2020-05-08 10:41:38 +02:00
Mateusz Pusz
ff21e1e899
GCC 10 compilation fixed
2020-05-05 21:25:56 +02:00
rbrugo
9ec5c77602
Added molar heat capacity
2020-04-10 16:36:08 +02:00
rbrugo
7dda8319a2
Added molar energy
2020-04-10 16:36:08 +02:00
rbrugo
89dbc30a92
Added permeability
2020-04-10 16:36:08 +02:00
rbrugo
596161cca5
Added permittivity
2020-04-10 16:36:08 +02:00
rbrugo
1cf0074483
Added charge density
2020-04-10 16:36:08 +02:00
rbrugo
7803da0bdf
Added electric field strength
2020-04-10 16:36:08 +02:00
rbrugo
15138286e5
Added thermal conductivity
2020-04-10 16:36:08 +02:00
rbrugo
017e88ca28
Added heat capacity and specific heat capacity
2020-04-10 16:36:08 +02:00
rbrugo
07b5364c97
Added dynamic viscosity
2020-04-10 16:36:08 +02:00