ct_common
1.0.1
Common library for combinatorial testing
|
00001 //===----- ct_common/common/constraint_s_eq.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_S_EQ 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #include <ct_common/common/constraint_s_eq.h> 00014 00015 using namespace ct::common; 00016 00017 Constraint_S_EQ::Constraint_S_EQ(void) 00018 : Constraint_S_Binary() { 00019 } 00020 00021 Constraint_S_EQ::Constraint_S_EQ(const Constraint_S_EQ &from) 00022 : Constraint_S_Binary(from) { 00023 } 00024 00025 Constraint_S_EQ &Constraint_S_EQ::operator = ( 00026 const Constraint_S_EQ &right) { 00027 Constraint_S_Binary::operator=(right); 00028 return *this; 00029 } 00030 00031 Constraint_S_EQ::~Constraint_S_EQ(void) { 00032 } 00033 00034 std::string Constraint_S_EQ::get_class_name(void) const { 00035 return Constraint_S_EQ::class_name(); 00036 } 00037 00038 std::string Constraint_S_EQ::class_name(void) { 00039 return "Constraint_S_EQ"; 00040 } 00041 00042 bool Constraint_S_EQ::evaluate_func(const std::string &val_1, const std::string &val_2) const { 00043 return val_1 == val_2; 00044 } 00045 00046 std::string Constraint_S_EQ::get_op_token(void) const { 00047 return "=="; 00048 }