refactor: QuantityValue concept renamed to Representation

This commit is contained in:
Mateusz Pusz
2021-03-19 07:53:18 +01:00
parent 67b2ad5d05
commit 88e642ec74
97 changed files with 197 additions and 197 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ struct yard : named_scaled_unit<yard, "yd", no_prefix, ratio(3), foot> {};
struct dim_length : base_dimension<"L", foot> {};
template<UnitOf<dim_length> U, QuantityValue Rep = double>
template<UnitOf<dim_length> U, Representation Rep = double>
using length = quantity<dim_length, U, Rep>;
} // namespace fps
@@ -45,7 +45,7 @@ struct kilometre : prefixed_unit<kilometre, units::isq::si::kilo, metre> {};
struct dim_length : base_dimension<"L", metre> {};
template<UnitOf<dim_length> U, QuantityValue Rep = double>
template<UnitOf<dim_length> U, Representation Rep = double>
using length = quantity<dim_length, U, Rep>;
namespace fps {
@@ -55,7 +55,7 @@ struct yard : named_scaled_unit<yard, "yd", no_prefix, ratio(3), foot> {};
struct dim_length : base_dimension<"L", foot> {};
template<UnitOf<dim_length> U, QuantityValue Rep = double>
template<UnitOf<dim_length> U, Representation Rep = double>
using length = quantity<dim_length, U, Rep>;
} // namespace fps
+3 -3
View File
@@ -204,10 +204,10 @@ void matrix_of_quantity_tests()
matrix_of_quantity_divide_by_scalar();
}
template<units::Unit U = si::metre, units::QuantityValue Rep = double>
template<units::Unit U = si::metre, units::Representation Rep = double>
using length_v = si::length<U, vector<Rep>>;
template<units::Unit U = si::newton, units::QuantityValue Rep = double>
template<units::Unit U = si::newton, units::Representation Rep = double>
using force_v = si::force<U, vector<Rep>>;
void quantity_of_vector_add()
@@ -277,7 +277,7 @@ void quantity_of_vector_tests()
quantity_of_vector_divide_by_scalar();
}
template<units::Unit U = si::metre, units::QuantityValue Rep = double>
template<units::Unit U = si::metre, units::Representation Rep = double>
using length_m = si::length<U, matrix<Rep>>;
void quantity_of_matrix_add()
+1 -1
View File
@@ -120,7 +120,7 @@ private:
namespace {
static_assert(units::QuantityValue<measurement<double>>);
static_assert(units::Representation<measurement<double>>);
void example()
{