Commit Graph

123 Commits

Author SHA1 Message Date
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
0b87e7c99c refactor!: require explicit number for references
Addresses:
- https://github.com/mpusz/units/pull/261#discussion_r596651065
- https://github.com/mpusz/units/pull/261#discussion_r596664550
- https://github.com/mpusz/units/pull/261#discussion_r597132294
2021-03-18 22:37:25 +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
Johel Ernesto Guerrero Peña
9a520edfe9 refactor!: replace one_rep with reference<D, U> 2021-03-18 22:37:25 +01:00
Mateusz Pusz
37473eb8ad refactor: core-io and core-fmt separate modules added 2021-03-17 13:46:28 +01:00
Mateusz Pusz
221883bb25 build: core library and each system separated to dedicated CMake targets
Refers to #249
2021-03-16 23:05:45 +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
Mateusz Pusz
625f452daa build: libc++ support added 2021-03-15 21:11:26 +01:00
Mateusz Pusz
069712b222 fix: Visual Studio caught up with terse form of constraints 2021-03-12 23:06:11 +01:00
Mateusz Pusz
0d3740cc87 refactor: earth_radius moved to cpp file 2021-02-26 14:25:01 +01:00
Mateusz Pusz
cdba0cdbc4 refactor: glide_computer refactored and extended with geographical coordinates 2021-02-26 14:10:36 +01:00
Yves Delley
e5462c1b65 fixed sign-conversion warning in doubtful conversion between std::clock_t and std::time_t 2021-02-23 14:33:37 +01:00
Johel Ernesto Guerrero Peña
017183653d feat: full-on dimensional analysis between related quantity kinds 2021-02-21 00:17:03 +01:00
Mateusz Pusz
8476517185 refactor: box_example modernized 2021-02-16 16:21:05 +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
8f04bd9cfe build: mp::units CMake target was a bad idea -> mp-units::mp-units is back 2021-02-15 17:06:09 +01:00
Mateusz Pusz
4d965d7f47 fix: 💥 dim_torque now properly divides by an angle (instead of multiply) + default unit name change
Resolves #220
2021-02-15 15:01:56 +01:00
Mateusz Pusz
dd2079055d feat: hello_units example updated with the latest changes 2020-12-29 11:46:27 +01:00
Mateusz Pusz
cff718301c refactor: quantity_io added 2020-12-28 15:18:36 +01:00
Mateusz Pusz
d3f20e22a3 build: Linear Algebra temporarily removed from MSVC build 2020-12-22 15:31:02 +01:00
Mateusz Pusz
a172f34684 build: Minimum CMake version required set for each file based on its contents 2020-12-21 22:56:00 +01:00
Mateusz Pusz
206712f046 build: Library renamed to mp::units 2020-12-17 23:06:37 +01:00
Mateusz Pusz
c5919d2cd8 build: Conan generator changed to provide more transparent dependency handling 2020-12-09 18:49:39 +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
d4d23847d8 refactor: DOWNCAST_MODE renamed to UNITS_DOWNCAST_MODE 2020-09-13 18:45:46 +02:00
Mateusz Pusz
6e510b3a2a refactor: modules-like behavior for systems removed to improve broken compile-time
Reffers to #32
2020-09-13 00:11:02 +02:00
Mateusz Pusz
accd113ad2 fix: got rid of terse syntax to make it work under MSVC 2020-09-12 21:22:23 +02:00
Mateusz Pusz
f4747a4d7d refactor: ♻️ more file system related cleanup (mostly physical dimensions definitions)
BREAKING_CHANGE: current, substance, temperature renamed to proper names
2020-09-11 21:16:26 +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
a0beeb48b1 feat: custom systems examples added 2020-09-10 21:17:43 +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
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
9a49df7222 refactor: 💥 Scalar concept renamed to ScalableNumber
Resolves #114
2020-09-08 21:17:09 +02:00
Mateusz Pusz
4bb51586dc refactor: got rid of gcc-9 backlog
BREAKING CHANGE: gcc-9.3 no longer supported
2020-09-08 13:09:34 +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
65286b7a81 Small refactoring of LA example 2020-09-06 18:10:52 +02:00
Mateusz Pusz
32779e01f0 Build system refactored to be comatible with ConanCenter 2020-09-06 00:00:06 +02:00
Mateusz Pusz
b318e8d039 VS2019 support added 2020-09-04 23:06:57 +02:00
Mateusz Pusz
5c98924efb Downcasting reworked to allow OFF and AUTO modes 2020-08-19 13:37:57 +02:00
Mateusz Pusz
997d5f22f1 glide_computer example documentation updated 2020-06-22 21:35:24 +02:00
Mateusz Pusz
b4121707df length_3d added in glide_computer 2020-06-22 19:41:34 +02:00
Mateusz Pusz
7445a2bcf1 glide_computer code cleanup 2020-06-22 16:23:18 +02:00
Mateusz Pusz
f55eacfa85 glide_computer example added 2020-06-21 10:37:45 +02:00
Mike Ford
d4d5ad243c minor fix in fps example 2020-06-17 14:56:32 +02:00
Mateusz Pusz
a3a12229d9 foot_pound_second example slightly refactored 2020-06-16 17:44:32 +02:00
Mateusz Pusz
4a46f44618 Merge branch 'master' of github.com:mpusz/units 2020-06-16 17:12:57 +02:00
Mike Ford
aa84dcb9ef added example and some more units to fps system 2020-06-16 15:14:46 +02:00