micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
deprecated-inlines.h File Reference

C++ header file with inline implementations for the deprecated µTest++ definitions. More...

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 The primary namespace for the µOS++ framework.
namespace  micro_os_plus::micro_test_plus
 Primary namespace for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::detail
 Internal implementation details for the µTest++ framework.
namespace  micro_os_plus::micro_test_plus::detail::math
 Internal mathematical utilities for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::literals
 Deprecated user-defined literals of the test checks.
namespace  micro_os_plus::micro_test_plus::operators
 Deprecated comparison and logical operators of the test checks.

Functions

template<class T, class Value_T>
constexpr auto micro_os_plus::micro_test_plus::detail::math::count_decimals (Value_T value) -> T
 Computes the number of decimal places of a value, with a precision of about seven digits.
template<bool Fraction, char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::count_literal_digits (void) -> std::size_t
 Counts the decimal digits of a floating-point literal, before or after the decimal point.
template<class Value_T>
constexpr auto micro_os_plus::micro_test_plus::detail::math::decimal_epsilon (Value_T value) -> Value_T
 Computes the default comparison tolerance of a floating-point value, one unit of its last decimal.
template<class T, char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::den (void) -> T
 Computes the decimal part of a number represented as an array of characters.
template<class T, char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::den_size (void) -> T
 Counts the decimal places of a number represented as an array of characters.
template<class T, char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::integer_magnitude (void) -> unsigned long long
 Computes the value of an integer literal of type T, before any negation.
template<class T, char... Cs>
constexpr auto micro_os_plus::micro_test_plus::detail::integral_literal (void)
 Creates the compile-time constant of an integer literal.
template<class T, char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::num (void) -> T
 Computes the integral part of a decimal floating-point number represented as an array of characters.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator and (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated logical && (and) operator.
template<class T>
requires extension::is_op<std::remove_cvref_t<T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator not (T &&t)
 Deprecated logical ! (not) operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator or (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated logical || (or) operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator!= (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated non-equality operator.
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_b (const char *name, decltype(sizeof("")) size)
 Deprecated user-defined literal operator to create a named boolean constant.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_c ()
 Deprecated user-defined literal operator to convert to char.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_d ()
 Deprecated user-defined literal operator to convert to double.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_f ()
 Deprecated user-defined literal operator to convert to float.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_i ()
 Deprecated user-defined literal operator to convert to int.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_i16 ()
 Deprecated user-defined literal operator to convert to int16_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_i32 ()
 Deprecated user-defined literal operator to convert to int32_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_i64 ()
 Deprecated user-defined literal operator to convert to int64_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_i8 ()
 Deprecated user-defined literal operator to convert to int8_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_l ()
 Deprecated user-defined literal operator to convert to long.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_ld ()
 Deprecated user-defined literal operator to convert to long double.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_ll ()
 Deprecated user-defined literal operator to convert to long long.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_s ()
 Deprecated user-defined literal operator to convert to short.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_sc ()
 Deprecated user-defined literal operator to convert to signed char.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_u ()
 Deprecated user-defined literal operator to convert to unsigned.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_u16 ()
 Deprecated user-defined literal operator to convert to uint16_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_u32 ()
 Deprecated user-defined literal operator to convert to uint32_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_u64 ()
 Deprecated user-defined literal operator to convert to uint64_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_u8 ()
 Deprecated user-defined literal operator to convert to uint8_t.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_uc ()
 Deprecated user-defined literal operator to convert to unsigned char.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_ul ()
 Deprecated user-defined literal operator to convert to unsigned long.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_ull ()
 Deprecated user-defined literal operator to convert to unsigned long long.
template<char... Cs>
constexpr auto micro_os_plus::micro_test_plus::literals::operator""_us ()
 Deprecated user-defined literal operator to convert to unsigned short.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator< (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated less than operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator<= (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated less than or equal operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator== (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated equality operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator> (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated greater than operator.
template<class Lhs_T, class Rhs_T>
requires extension::any_op<std::remove_cvref_t<Lhs_T>, std::remove_cvref_t<Rhs_T>>
constexpr auto micro_os_plus::micro_test_plus::operators::operator>= (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated greater than or equal operator.
template<char... Cs>
consteval auto micro_os_plus::micro_test_plus::detail::math::parse_integer_literal (void) -> integer_literal
 Parses the characters of an integer literal.
template<class T, class Exp_T>
constexpr auto micro_os_plus::micro_test_plus::detail::math::pow (const T base, const Exp_T exp) noexcept -> T
 Generic exponentiation function to compute the power of a base raised to an exponent.
Deprecated Functions
template<class Lhs_T, class Rhs_T>
constexpr auto micro_os_plus::micro_test_plus::_and (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated generic logical and operation, the v5.0.1 name of all_of().
template<class Expr_T>
constexpr auto micro_os_plus::micro_test_plus::_not (Expr_T &&expr)
 Deprecated generic logical not operation, the v5.0.1 name of negate().
template<class Lhs_T, class Rhs_T>
constexpr auto micro_os_plus::micro_test_plus::_or (Lhs_T &&lhs, Rhs_T &&rhs)
 Deprecated generic logical (inclusive) or operation, the v5.0.1 name of any_of().
template<class T>
requires std::is_floating_point_v<T>
constexpr auto micro_os_plus::micro_test_plus::approx (T value, std::type_identity_t< T > epsilon) noexcept -> detail::value< T >
 Deprecated wrapping of a floating-point value with an explicit comparison tolerance.
template<class T>
constexpr auto micro_os_plus::micro_test_plus::mut (const T &t) noexcept -> T &
 Deprecated generic mutator to remove const qualification from a reference.

Detailed Description

This header provides the inline implementations for the deprecated definitions declared in deprecated.h: the v5.0.1 names of the logical functions (_not, _and, and _or), which forward to negate(), all_of(), and any_of(), mut(), the overloaded operators, the user-defined literals, and approx (value, epsilon), and the members of the detail::timestamp class.

The constructor of detail::timestamp that reads the system clock is defined in src/deprecated.cpp, with detail::read_clock(), the clock access used by detail::stopwatch.

All definitions reside within the micro_os_plus::micro_test_plus namespace.

This file is included by deprecated.h; the applications include micro-os-plus/micro-test-plus.h, not this file.

Definition in file deprecated-inlines.h.