include/qpl/cpp_api/util/qpl_util.hpp
/**
 * @brief Maps high-level comparator to low-level one
 */
@brief Maps high-level comparator to low-level one
@brief Maps high - level comparator to low - level one
static inline auto comparator_to_qpl_operation(comparators comparator, bool is_inclusive) -> qpl_operation {
    switch (comparator) {
        case comparators::less: {
            return is_inclusive ? qpl_op_scan_le : qpl_op_scan_lt;
        }
        case comparators::greater: {
            return is_inclusive ? qpl_op_scan_ge : qpl_op_scan_gt;
        }
        case comparators::equals: {
            return qpl_op_scan_eq;
        }
        default: {
            return qpl_op_scan_ne;
        }
    }
}
static inline auto comparator_to_qpl_operation ( comparators comparator , bool is_inclusive ) -> qpl_operation { switch ( comparator ) { case comparators :: less : { return is_inclusive ? qpl_op_scan_le : qpl_op_scan_lt ; } case comparators :: greater : { return is_inclusive ? qpl_op_scan_ge : qpl_op_scan_gt ; } case comparators :: equals : { return qpl_op_scan_eq ; } default : { return qpl_op_scan_ne ; } } }
@brief Maps high-level comparator to low-level one
@brief Maps high - level comparator to low - level one