Commit Graph
369 Commits
Author SHA1 Message Date
Mateusz Pusz c807ba31be feat: quecto, ronto, ronna, quetta prefixed versions of unit symbols added 2023-04-08 19:54:31 +02:00
Mateusz Pusz d65393b4e2 refactor: quantity_spec casts functions renamed 2023-04-08 19:49:51 +02:00
Mateusz Pusz 40f6ae2da7 refactor: quantity refactored + quantity_test updated to reflect and test changes 2023-04-05 17:24:08 +02:00
Mateusz Pusz 1a940399c9 refactor: chrono types now convert to quantity kinds 2023-04-04 14:28:38 +02:00
Mateusz Pusz 54dd8844b7 test: unit_symbol_test updated for a new unicode symbol of standard_gravity_unit 2023-04-03 19:28:51 +02:00
Mateusz Pusz 42a73739eb refactor: angle_test refactored to V2 2023-04-03 19:23:39 +02:00
Mateusz Pusz 660e62c0a6 refactor: chrono_test refactored to V2 2023-04-03 19:23:08 +02:00
Mateusz Pusz b7628a1752 feat: initial version of quantity_spec conversions implemented 2023-02-14 12:28:34 +01:00
Mateusz Pusz 858b1e625b test: tests for new features added to references test 2023-02-13 19:38:33 +01:00
Mateusz Pusz e353bb3436 refactor(unit test): support for new features added to unit and dimension unit tests 2023-02-13 19:07:16 +01:00
Mateusz Pusz 6d033d72fe fix(unit test): quantity construction switched to a new syntax in unit tests 2023-02-13 19:05:58 +01:00
Mateusz Pusz 9436229ed2 refactor: the rest of the code refactored for new quantity construction way 2023-02-10 17:20:48 -08:00
Mateusz Pusz b4f47c3fef feat: value_cast support added
Resolves #239 and #120
2023-02-03 11:08:13 +01:00
Mateusz Pusz cf3408a3c8 refactor: implementation cleanup + support for units as references started 2023-02-02 14:56:29 +01:00
Mateusz Pusz 622b3e3cbd test: unit_symbol() tests moved to a dedicated separate test file 2023-01-28 11:11:07 +01:00
Mateusz Pusz 1b2d77af41 feat: quantities of the same kind can now be added, subtracted, or compared to each other 2023-01-28 11:00:50 +01:00
Mateusz Pusz 2cf736a1e6 feat: preventing possible future units crash when using namespace std;
Resolves #317
2022-12-29 20:18:48 +01:00
Mateusz Pusz 6b72dd39c1 refactor: headers with system definitions moved to _systems_ subdirectory 2022-12-29 19:27:54 +01:00
Mateusz Pusz 2571b36964 test: additional checks for dimensionless units added to iec80000 quantities 2022-12-29 19:01:32 +01:00
Mateusz Pusz c7d7c7d49f refactor: isq_angle refactored after consulting with Paul Quincey 2022-12-29 19:00:15 +01:00
Mateusz Pusz 97da55edfa refactor: the rest of the systems refactored for V2 2022-12-29 18:59:10 +01:00
Mateusz Pusz a9c190a7bf test: iec80000 unit test added 2022-12-27 12:51:28 +01:00
Mateusz Pusz 6165392d84 test: isq_angle_test added 2022-12-27 10:50:35 +01:00
Mateusz Pusz ff14b49b68 refactor: additional unit tests enabled for the V2 build 2022-12-25 17:34:51 +01:00
Mateusz Pusz 07687f9ef6 refactor: _generic/dimensionless.h_ removed (units added to _unit.h_) 2022-12-25 17:14:54 +01:00
Mateusz Pusz b7884b90a8 Revert "feat: ISQ quantity names conflicts resolved with inline namespaces"
This reverts commit 043410d2f8.
2022-12-20 12:46:07 +01:00
Mateusz Pusz 043410d2f8 feat: ISQ quantity names conflicts resolved with inline namespaces 2022-12-20 11:20:47 +01:00
Mateusz Pusz 11d64094c1 refactor(unit test): symbol_text_test refactored for V2 2022-12-20 10:48:07 +01:00
Mateusz Pusz c30ce61c19 feat: electromagnetism quantity specifications added 2022-12-20 10:38:54 +01:00
Mateusz Pusz 7a26125e16 refactor: public headers cleanup
Public headers should be only the ones that a user may have a need to actually include in his/her code.
2022-12-19 14:55:54 +01:00
Mateusz Pusz 026ce8a4e7 feat: thermodynamics quantity specifications added 2022-12-19 12:04:57 +01:00
Mateusz Pusz a9db8a1538 fix: mechanics quantity specifications fixed 2022-12-19 12:02:54 +01:00
Mateusz Pusz 5152db6382 test: ISQ quantities specification tests added 2022-12-17 16:18:14 +01:00
Mateusz Pusz 92c70f1a4e feat: quantity_spec support added 2022-12-16 18:15:48 +01:00
Mateusz Pusz 91f26759d6 refactor: more unit tests refactored 2022-12-01 20:59:16 +01:00
Mateusz Pusz 14952dfbf4 refactor(unit test): speed_of_light_unit renamed to speed_of_light_in_vacuum_unit in unit_test 2022-11-10 14:42:44 -10:00
Mateusz Pusz d75f22ecc4 feat: constant_unit support added 2022-11-10 09:55:43 -10:00
Mateusz Pusz 3d536fb82b refactor: Unicode symbols directly provided in the code 2022-11-09 22:53:27 -10:00
Mateusz Pusz f2e63fdeb1 refactor: std::common_type usage replaced with dedicated functions for units, dimensions, and references 2022-11-09 18:39:51 -10:00
Mateusz Pusz 649252d691 refactor: system_reference moved to a dedicated header file 2022-11-09 18:33:39 -10:00
Mateusz Pusz 61b88b919f refactor: convertible() renamed to interconvertible() 2022-11-08 10:57:05 -10:00
Mateusz Pusz 3d1f339115 refactor: reference now takes NTTPs rather then types
Even though it makes error logs a bit more obscure it simplifies coding a lot.
2022-11-08 10:37:41 -10:00
Mateusz Pusz 7e09a5f810 test: more static unit tests added 2022-11-07 16:19:42 -10:00
Mateusz Pusz e3863e8f8d refactor: unit_symbol_denominator renamed to unit_symbol_solidus 2022-11-07 16:18:11 -10:00
Mateusz Pusz 4938e9d5c0 feat: Added support for natural units-like systems + dimension_one cleanup 2022-11-04 19:29:05 +01:00
Mateusz Pusz 9915ae22b5 fix: __cpp_explicit_this_parameter spelling fixed 2022-10-25 19:31:41 +02:00
Mateusz Pusz cb861dd81a feat: system's definition highly simplified by removing the need for a system_reference for most cases 2022-10-25 07:27:08 +02:00
Mateusz Pusz 8dcdc7bdac fix: printing of symbols with fractional powers fixed 2022-10-23 22:19:44 +02:00
Mateusz Pusz e7bebac2a7 feat: power<Num, Den>() support added for dimensions and units 2022-10-23 10:47:12 +02:00
Mateusz Pusz 08b7716f51 feat: std::common_type support for unit added 2022-10-22 20:59:44 +02:00