refactor: modules-like behavior for systems removed to improve broken compile-time

Reffers to #32
This commit is contained in:
Mateusz Pusz committed 2020-09-13 00:11:02 +02:00
1 parent accd113ad2
commit 6e510b3a2a
213 files changed
+479 -839

No files matched your search

@@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/acceleration.h>
namespace units{
namespace experimental{
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/area.h>
namespace area {
@@ -20,7 +20,9 @@
physical_quantities
*/
#include <units/physical/si/si.h>
#include <units/physical/si/derived/capacitance.h>
#include <units/physical/si/derived/resistance.h>
#include <units/physical/si/base/time.h>
#include <units/math.h>
#include "./voltage.h"
#include <iostream>
+1 -1
View File
@@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/density.h>
namespace units{
namespace experimental{
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/force.h>
namespace units{
namespace experimental{
+6 -6
View File
@@ -2,12 +2,12 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/imperial/imperial.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/typographic/typographic.h>
#include <units/physical/si/us/us.h>
#include <units/physical/si/iau/iau.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/imperial/base/length.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/typographic/base/length.h>
#include <units/physical/si/us/base/length.h>
#include <units/physical/si/iau/base/length.h>
namespace units{
namespace experimental{
+1 -1
View File
@@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/base/mass.h>
namespace units{
namespace experimental{
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/base/time.h>
// named qtime due to conflict with time_t time(time_t*)
namespace q_time {
@@ -1,6 +1,5 @@
#pragma once
#include <units/physical/dimensions.h>
#include <units/physical/si/prefixes.h>
#include <units/quantity.h>
// get at the units text of the quantity, without its numeric value
+1 -1
View File
@@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/voltage.h>
namespace units{
namespace experimental{
+1 -1
View File
@@ -2,7 +2,7 @@
#pragma once
#include <units/physical/si/si.h>
#include <units/physical/si/derived/volume.h>
namespace units{
namespace experimental{
+3 -3
View File
@@ -20,9 +20,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/cgs/cgs.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/si.h>
#include <units/physical/si/cgs/derived/speed.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/derived/speed.h>
#include <iostream>
namespace {
+8 -1
View File
@@ -1,4 +1,11 @@
#include <units/physical/si/si.h>
#include <units/physical/si/derived/acceleration.h>
#include <units/physical/si/constants.h>
#include <units/physical/si/derived/density.h>
#include <units/physical/si/derived/force.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/mass.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/derived/volume.h>
#include <units/format.h>
#include <cassert>
+4 -1
View File
@@ -20,7 +20,10 @@
physical_quantities
*/
#include <units/physical/si/si.h>
#include <units/physical/si/derived/capacitance.h>
#include <units/physical/si/derived/resistance.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/derived/voltage.h>
#include <units/math.h>
#include <iostream>
+9 -6
View File
@@ -16,12 +16,15 @@
*/
#include <units/format.h>
#include <units/physical/si/si.h>
#include <units/physical/si/iau/iau.h>
#include <units/physical/si/imperial/imperial.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/typographic/typographic.h>
#include <units/physical/si/us/us.h>
#include <units/physical/si/derived/area.h>
#include <units/physical/si/iau/base/length.h>
#include <units/physical/si/imperial/base/length.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/time.h>
#include <units/physical/si/typographic/base/length.h>
#include <units/physical/si/us/base/length.h>
#include <units/physical/si/derived/volume.h>
#include <iostream>
namespace {
+1 -1
View File
@@ -15,7 +15,7 @@
along with this program. If not, see http://www.gnu.org/licenses./
*/
#include <units/physical/si/si.h>
#include <units/physical/si/base/length.h>
#include <units/format.h>
#include <iostream>
+3 -1
View File
@@ -22,7 +22,9 @@
#include <units/format.h>
#include <units/generic/angle.h>
#include <units/physical/si/si.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/derived/energy.h>
#include <units/physical/si/derived/torque.h>
#include <iostream>
using namespace units;
+11 -2
View File
@@ -22,8 +22,17 @@
#include <units/concepts.h>
#include <units/format.h>
#include <units/physical/si/fps/fps.h>
#include <units/physical/si/si.h>
#include <units/physical/si/fps/derived/density.h>
#include <units/physical/si/fps/base/length.h>
#include <units/physical/si/fps/base/mass.h>
#include <units/physical/si/fps/derived/power.h>
#include <units/physical/si/fps/derived/speed.h>
#include <units/physical/si/fps/derived/volume.h>
#include <units/physical/si/base/length.h>
#include <units/physical/si/base/mass.h>
#include <units/physical/si/derived/power.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/derived/volume.h>
#include <units/quantity.h>
#include <iostream>
+2 -2
View File
@@ -22,8 +22,8 @@
#include <units/format.h>
#include <units/math.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/si.h>
#include <units/physical/si/international/base/length.h>
#include <units/physical/si/derived/speed.h>
#include <units/quantity_point.h>
#include <array>
#include <compare>
+2 -2
View File
@@ -21,8 +21,8 @@
// SOFTWARE.
#include <units/format.h>
#include <units/physical/si/international/international.h>
#include <units/physical/si/si.h>
#include <units/physical/si/international/derived/speed.h>
#include <units/physical/si/derived/speed.h>
#include <iostream>
using namespace units::physical;
@@ -1,5 +1,5 @@
#include <units/format.h>
#include <units/physical/si/si.h>
#include <units/physical/si/derived/speed.h>
#include <iostream>
#include <array>
+3 -1
View File
@@ -20,7 +20,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/si.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/derived/force.h>
#include <units/physical/si/derived/energy.h>
#include <units/format.h>
#include <linear_algebra.hpp>
#include <iostream>
+1 -1
View File
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/si.h>
#include <units/physical/si/derived/acceleration.h>
#include <cmath>
#include <compare>
#include <iostream>
+5 -2
View File
@@ -20,8 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/natural/natural.h>
#include <units/physical/si/si.h>
#include <units/physical/natural/constants.h>
#include <units/physical/si/derived/energy.h>
#include <units/physical/si/derived/momentum.h>
#include <units/physical/si/derived/speed.h>
#include <units/physical/si/constants.h>
#include <units/math.h>
#include <iostream>
+1 -2
View File
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/physical/si/si.h>
#include <units/physical/si/derived/speed.h>
#include <iostream>
namespace {
@@ -40,7 +40,6 @@ void example()
Time auto t1 = 10_q_s;
Speed auto v1 = avg_speed(d1, t1);
// TODO: check if below is still true after adding whole SI module
auto temp1 = v1 * 50_q_m; // produces intermediate unknown dimension with 'unknown_coherent_unit' as its 'coherent_unit'
Speed auto v2 = temp1 / 100_q_m; // back to known dimensions again
Length auto d2 = v2 * 60_q_s;