![]() |
micro-test-plus 3.2.2
µTest++ Testing Framework
|
Greater than or equal comparator struct template. More...
#include <micro-os-plus/micro-test-plus.h>
Public Member Functions | |
constexpr | ge_ (const Lhs_T &lhs={}, const Rhs_T &rhs={}) |
Constructs a greater than or equal comparator for the given operands. | |
constexpr auto | lhs (void) const |
Retrieves the left-hand operand. | |
constexpr | operator bool () const |
Conversion operator to boolean. | |
constexpr auto | rhs (void) const |
Retrieves the right-hand operand. |
Public Attributes | |
const Lhs_T | lhs_ {} |
Stores the left-hand operand. | |
const Rhs_T | rhs_ {} |
Stores the right-hand operand. | |
const bool | value_ {} |
Stores the result of the greater than or equal comparison. |
Lhs_T | The type of the left-hand operand. |
Rhs_T | The type of the right-hand operand. |
The ge_ struct template provides a type-safe mechanism for evaluating whether the left-hand operand is greater than or equal to the right-hand operand within the framework.
This comparator supports a variety of operand types, including those with static values and generic types. For types with static values, the comparison is performed directly. For all other types, the generic getter is used to retrieve and compare the values.
The implementation is optimised for use in embedded environments and supports both compile-time and run-time evaluation.
All definitions are intended for internal use within the framework and are implemented in the include/micro-os-plus folder to maintain a structured and modular codebase.
|
inlineconstexpr |
lhs | The left-hand operand. |
rhs | The right-hand operand. |
Evaluates whether the left-hand operand is greater than or equal to the right-hand operand at construction, supporting static values and generic types. The result is stored in the value_ member for efficient access.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
const Lhs_T micro_os_plus::micro_test_plus::detail::ge_< Lhs_T, Rhs_T >::lhs_ {} |
const Rhs_T micro_os_plus::micro_test_plus::detail::ge_< Lhs_T, Rhs_T >::rhs_ {} |
const bool micro_os_plus::micro_test_plus::detail::ge_< Lhs_T, Rhs_T >::value_ {} |