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
@@ -29,10 +29,10 @@ namespace {
* @brief Representation type meeting minimum requirements
*
* This type with a default Mode = 0 provides the minimum set of requirements to
* satisfy @c QuantityValue concept which is used for quantity's representation type.
* satisfy @c Representation concept which is used for quantity's representation type.
*
* In case of Mode != 0 only one of mandatory operation is removed which should
* result in @c QuantityValue concept not being satisfied.
* result in @c Representation concept not being satisfied.
*
* @tparam Mode a flag to disable specific type's operations
*/
@@ -140,20 +140,20 @@ static_assert(!std::constructible_from<length<metre, int>, dimensionless<one, mi
static_assert(!std::convertible_to<dimensionless<one, min_expl<>>, length<metre, int>>);
// all operations needed to satisfy concept
static_assert(QuantityValue<min_expl<>>);
static_assert(!QuantityValue<min_expl<1>>);
static_assert(!QuantityValue<min_expl<2>>);
static_assert(!QuantityValue<min_expl<3>>);
static_assert(Representation<min_expl<>>);
static_assert(!Representation<min_expl<1>>);
static_assert(!Representation<min_expl<2>>);
static_assert(!Representation<min_expl<3>>);
#if !defined(UNITS_COMP_GCC) || UNITS_COMP_GCC > 10 || UNITS_COMP_GCC_MINOR > 1
static_assert(!QuantityValue<min_expl<4>>);
static_assert(!Representation<min_expl<4>>);
#endif
static_assert(!QuantityValue<min_expl<5>>);
static_assert(!Representation<min_expl<5>>);
#if !defined(UNITS_COMP_GCC) || UNITS_COMP_GCC > 10 || UNITS_COMP_GCC_MINOR > 1
static_assert(!QuantityValue<min_expl<6>>);
static_assert(!Representation<min_expl<6>>);
#endif
static_assert(!QuantityValue<min_expl<7>>);
static_assert(!QuantityValue<min_expl<8>>);
static_assert(!QuantityValue<min_expl<9>>);
static_assert(!Representation<min_expl<7>>);
static_assert(!Representation<min_expl<8>>);
static_assert(!Representation<min_expl<9>>);
// quantity's operators should mirror the representation type capabilities
template<typename Rep>