ct_common
1.0.1
Common library for combinatorial testing
|
00001 //===----- ct_common/common/constraint_a_ge.cpp -----------------*- C++ -*-===// 00002 // 00003 // The ct_common Library 00004 // 00005 // This file is distributed under the MIT license. See LICENSE for details. 00006 // 00007 //===----------------------------------------------------------------------===// 00008 // 00009 // This file contains the function definitions of class Constraint_A_GE 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #include <ct_common/common/constraint_a_ge.h> 00014 #include <ct_common/common/arithmetic_utils.h> 00015 00016 using namespace ct::common; 00017 00018 Constraint_A_GE::Constraint_A_GE(void) 00019 : Constraint_A_Binary() { 00020 } 00021 00022 Constraint_A_GE::Constraint_A_GE(const Constraint_A_GE &from) 00023 : Constraint_A_Binary(from) { 00024 } 00025 00026 Constraint_A_GE &Constraint_A_GE::operator = ( 00027 const Constraint_A_GE &right) { 00028 Constraint_A_Binary::operator=(right); 00029 return *this; 00030 } 00031 00032 Constraint_A_GE::~Constraint_A_GE(void) { 00033 } 00034 00035 std::string Constraint_A_GE::get_class_name(void) const { 00036 return Constraint_A_GE::class_name(); 00037 } 00038 00039 std::string Constraint_A_GE::class_name(void) { 00040 return "Constraint_A_GE"; 00041 } 00042 00043 bool Constraint_A_GE::evaluate_func_int(int loprd_val, int roprd_val) const { 00044 return ct::common::utils::cmp_ge(loprd_val, roprd_val, this->precision_); 00045 } 00046 00047 bool Constraint_A_GE::evaluate_func_double(double loprd_val, double roprd_val) const { 00048 return ct::common::utils::cmp_ge(loprd_val, roprd_val, this->precision_); 00049 } 00050 00051 std::string Constraint_A_GE::get_op_token(void) const { 00052 return ">="; 00053 }